From c451b9b3878da0c81feabb9501a9af55644ac12e Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Sat, 8 Jun 2013 11:31:52 -0700 Subject: Use a call instruction to figure out the original native address when retranslating so that it does not get lost when the byte transforms from a instruction word to extension word --- zruntime.S | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zruntime.S') diff --git a/zruntime.S b/zruntime.S index d6250fb..6dc353d 100644 --- a/zruntime.S +++ b/zruntime.S @@ -247,8 +247,12 @@ z80_io_write: .global z80_retrans_stub z80_retrans_stub: + pop %r14 call z80_save_context + /* adjust for mov and call instructions */ + sub $10, %r14 mov %r13d, %edi + mov %r14, %rdx push %rsi call z80_retranslate_inst pop %rsi -- cgit v1.2.3