diff z80_to_x86.c @ 1842:49f65d240299 mame_interp

Merge from default
author Michael Pavone <pavone@retrodev.com>
date Sun, 14 Apr 2019 23:38:02 -0700
parents 37afb9cf58be
children 62166274e6c0
line wrap: on
line diff
--- a/z80_to_x86.c	Thu Mar 14 23:40:50 2019 -0700
+++ b/z80_to_x86.c	Sun Apr 14 23:38:02 2019 -0700
@@ -3601,7 +3601,7 @@
 	tmp_stack_off = code->stack_off;
 	save_callee_save_regs(code);
 #ifdef X86_64
-	mov_rr(code, RDI, options->gen.context_reg, SZ_PTR);
+	mov_rr(code, FIRST_ARG_REG, options->gen.context_reg, SZ_PTR);
 #else
 	mov_rdispr(code, RSP, 5 * sizeof(int32_t), options->gen.context_reg, SZ_PTR);
 #endif