diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c index ec6b3e938457cc591c7b3725732362deb0a5f796..43fbd0c778ae3b946ecf46942a7a31d939cde955 100644 --- a/target-i386/op_helper.c +++ b/target-i386/op_helper.c @@ -349,6 +349,10 @@ static void switch_tss(int tss_selector, new_segs[R_GS] = 0; new_trap = 0; } + /* XXX: avoid a compiler warning, see + http://support.amd.com/us/Processor_TechDocs/24593.pdf + chapters 12.2.5 and 13.2.4 on how to implement TSS Trap bit */ + (void)new_trap; /* NOTE: we must avoid memory exceptions during the task switch, so we make dummy accesses before */