Commit a02f9602 authored by Jan Kiszka's avatar Jan Kiszka Committed by Marcelo Tosatti
Browse files

x86/emulator: Fix inline assembler warning



Code compiles to the same binary, but now with one warning less.
Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 0415feea
......@@ -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);
asm volatile ("jmp %0" : : "m"(*mem));
asm volatile ("jmp *%0" : : "m"(*mem));
report("jump to non-canonical address", exceptions == 1);
handle_exception(GP_VECTOR, 0);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment