Open wysiwyng opened 2 years ago
Could you please elaborate?
the PC can be read as ic.current_address_
during the instruction translation phase of ETISS, as functions are executed during JIT runtime they need to read the PC as cpu->instructionPointer
problematic in "just doing that" is that currently cpu->instructionPointer
is incremented at the very beginning of each instruction, but ic.current_address_
always points to the address of the current instruction. to fix this properly, the PC increment would have to be reworked, and by that extent most likely made explicit in the CoreDSL model.
is translated to:
where
ic.current_address_
can not be accessed in function context.