target/i386: fix pushed value of EFLAGS.RF
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 May 2024 15:46:17 +0000 (17:46 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 8 Jun 2024 08:33:37 +0000 (10:33 +0200)
commit69cb498c56263a5ae484fd4fef920d3d3eea04c8
treee107b1f667c790c10683842f9625765b687472fd
parentf1572ab94738bd5787b7badcd4bd93a3657f0680
target/i386: fix pushed value of EFLAGS.RF

When preparing an exception stack frame for a fault exception, the value
pushed for RF is 1.  Take that into account.  The same should be true
of interrupts for repeated string instructions, but the situation there
is complicated.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/seg_helper.c
target/i386/tcg/translate.c