@@ -359,7 +359,7 @@ static void test_pop(void *mem)
"enter");
}
-static void test_ljmp(void *mem)
+static void test_far_jmp(void *mem)
{
unsigned char *m = mem;
volatile int res = 1;
@@ -369,7 +369,7 @@ static void test_ljmp(void *mem)
asm volatile ("rex64 ljmp *%0"::"m"(*m));
res = 0;
jmpf:
- report(res, "ljmp");
+ report(res, "far jmp, via emulated MMIO");
}
static void test_incdecnotneg(void *mem)
@@ -1296,7 +1296,7 @@ int main(void)
test_smsw(mem);
test_lmsw();
- test_ljmp(mem);
+ test_far_jmp(mem);
test_far_ret(mem);
test_stringio();
test_incdecnotneg(mem);
Rename test_ljmp() as test_far_jmp() to better match the SDM. Also change the output of test to explain what it is doing. Suggested-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com> Reviewed-and-tested-by: Sean Christopherson <seanjc@google.com> --- x86/emulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)