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(-)

diff --git a/x86/emulator.c b/x86/emulator.c
index 0964e6a..e5c1c6b 100644
--- a/x86/emulator.c
+++ b/x86/emulator.c
@@ -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);
 }
-- 
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to