Does anyone have any good article of information on getting a simulator to cache instructions between branching logic?
I have general idea about it, but I am not sure how to handle changing state, and interrupts.
Instruction Caching
Re: Instruction Caching
Sounds like you're thinking of dynamic recompilation, where you transform straight-line sections into some efficient representation, maybe even native code?
If you search with those terms, you should be able to find some good articles. Here are some I found:
http://www.altdevblogaday.com/2011/06/1 ... er-part-1/
http://fms.komkon.org/EMUL8/HOWTO.html#LABD
Cheers
Ed
If you search with those terms, you should be able to find some good articles. Here are some I found:
http://www.altdevblogaday.com/2011/06/1 ... er-part-1/
http://fms.komkon.org/EMUL8/HOWTO.html#LABD
Cheers
Ed
Re: Instruction Caching
Your question is too vague to be able to deduce what you're attempting much less offer an useful advice.
Toshi
Toshi
Re: Instruction Caching
aaronmell wrote:
... I am not sure how to handle changing state, and interrupts.
- to account for the total clocks in the code
- notice that the interrupt fired during the code
- restore the machine state to what it was before the code
- emulate the code opcode-by-opcode until the cycle where the interrupt happens.
Or, if you don't need to be cycle-accurate, just handle the interrupt at the end of the straight-line section.
Ed
Re: Instruction Caching
BigEd wrote:
Sounds like you're thinking of dynamic recompilation, where you transform straight-line sections into some efficient representation, maybe even native code?
If you search with those terms, you should be able to find some good articles. Here are some I found:
http://www.altdevblogaday.com/2011/06/1 ... er-part-1/
http://fms.komkon.org/EMUL8/HOWTO.html#LABD
Cheers
Ed
If you search with those terms, you should be able to find some good articles. Here are some I found:
http://www.altdevblogaday.com/2011/06/1 ... er-part-1/
http://fms.komkon.org/EMUL8/HOWTO.html#LABD
Cheers
Ed