|
Re: Why not make cpu a plugin?: msg#00089emulators.bochs.devel
I would be very interested in helping to define an interface. I recently released a tool (under the GPL) that uses a modified bochs emulator to serve as a frontend to a detailed CPU performance model. We use this as the basis for our micro-processor research. In order to serve as a frontend to a research timing simulator, we need the following peices of information: - full register state access (on a per-inst basis). perhaps we can use the instrumentation hooks for this, but in our simulator we just have access to the bx_cpu. - the associated memory transactions (loads and stores on a per-inst basis). we are currently using the instrumentation hooks that bochs already provides to do this with some minor bug fixes. - raw instruction bytes or the decoded instruction (modrm, sib, imm, opcode, etc.). we use the latter so we do not need to repeat the decode step. we currently grab the information that FetchDecode() already places in the bx_inst. We basically use the following functions as an interface to bochs: - cpu_loop(int num_insts) - bochs_init(char* path_to_bochrc_file) (basically main() without the call to cpu_loop()) - bochs_save(char*) - bochs_restore(char*) - get_memory_transactions() - get_state() The bochs_save() and bochs_restore() is a work in progress... That project was about 80% completed (mostly written, but needs debugging) when Bryce and I stopped working on it last spring. Unfortunately, we have both been caught up with other things. So if we want to find a well-defined "minimal" interface that will be useful for timing simulations, then there should be a way to get all the information above through either instrumentation hooks other functions. If anyone is interested in how we use bochs as a frontend, see the following: - http://www.crhc.uiuc.edu/ACS/tools --Brian Slechta fenghaitao wrote: I want to find a well-defined interface. ------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | FedEx delivered meds...................................................................................dill: 00089, Waldo Purcell |
|---|---|
| Next by Date: | You Could Have Money Coming: 00089, Octavio |
| Previous by Thread: | Re: Why not make cpu a plugin?i: 00089, fenghaitao |
| Next by Thread: | Fw: holdiay specials: xanax,valium,cialis allan j: 00089, Leon Robison |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |