From ad6bf7f24a132e33246b4893f3a342d6286ae005 Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Fri, 3 Sep 2021 18:51:57 +0200 Subject: [PATCH] Minor x86 edits --- x86/x86_stub.S | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/x86/x86_stub.S b/x86/x86_stub.S index 107ca81..4d58f74 100644 --- a/x86/x86_stub.S +++ b/x86/x86_stub.S @@ -219,7 +219,6 @@ ext_store_ewram8: ext_store_io8: and $0x3FF, %eax # wrap around address - and $0xFF, %edx call _write_io_register8 # perform 8bit I/O register write jmp write_epilogue # see if it requires any system update @@ -261,8 +260,7 @@ defsymbl(execute_store_u8) cmp $15, %ecx ja ext_store_ignore # ecx = ext_store_u8_jtable[address >> 24] - mov ESTORE_U8_TBL(%ebx, %ecx, 4), %ecx - jmp *%ecx # jump to table index + jmp *ESTORE_U8_TBL(%ebx, %ecx, 4) # 16bit ext memory routines @@ -283,7 +281,6 @@ ext_store_ewram16: ext_store_io16: and $0x3FF, %eax # wrap around address - and $0xFFFF, %edx call _write_io_register16 # perform 16bit I/O register write jmp write_epilogue # see if it requires any system update @@ -332,8 +329,7 @@ defsymbl(execute_store_u16) cmp $15, %ecx ja ext_store_ignore # ecx = ext_store_u16_jtable[address >> 24] - mov ESTORE_U16_TBL(%ebx, %ecx, 4), %ecx - jmp *%ecx # jump to table index + jmp *ESTORE_U16_TBL(%ebx, %ecx, 4) # 32bit ext memory routines @@ -388,8 +384,7 @@ defsymbl(execute_store_u32) cmp $15, %ecx ja ext_store_ignore # ecx = ext_store_u32_jtable[address >> 24] - movl ESTORE_U32_TBL(%ebx, %ecx, 4), %ecx - jmp *%ecx + jmp *ESTORE_U32_TBL(%ebx, %ecx, 4) # %eax = new_cpsr # %edx = store_mask