x86/emulator: Fix inline assembler warning
PATCH 1/1 x86/emulator: Fix inline assembler warning
Code compiles to the same binary, but now with one warning less.
Signed-off-by Jan Kiszka <[email protected]>
--- x86/emulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
x86/emulator.c +1 -1
@@ -838,7 +838,7 @@ static void test_jmp_noncanonical(uint64_t *mem) exceptions =0 ;handle_exception (GP_VECTOR , advance_rip_by_3_and_note_exception); - asmvolatile ("jmp %0" : :"m" (*mem)); + asmvolatile ("jmp *%0" : :"m" (*mem));report ("jump to non-canonical address" , exceptions ==1 );handle_exception (GP_VECTOR ,0 ); }
Signature · 1 line
2.1.4
Marcelo Tosatti
AppliedQuoted 22 lines · Jan Kiszka
Code compiles to the same binary, but now with one warning less.
Signed-off-by Jan Kiszka <[email protected]>--- x86/emulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)x86/emulator.c +1
-1@@ -838,7 +838,7 @@ static void test_jmp_noncanonical(uint64_t *mem) exceptions =0 ;handle_exception (GP_VECTOR , advance_rip_by_3_and_note_exception); - asmvolatile ("jmp %0" : :"m" (*mem)); + asmvolatile ("jmp *%0" : :"m" (*mem));report ("jump to non-canonical address" , exceptions ==1 );handle_exception (GP_VECTOR ,0 ); }Signature · 1 line
2.1.4
Applied, thanks.