Handle Vex-supplied guest address mapping failures in the scheduler.

This makes none/tests/x86/badseg work.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3283
This commit is contained in:
Julian Seward 2005-03-11 13:19:47 +00:00
parent 5fee346604
commit 46bc07d683

View File

@ -794,6 +794,13 @@ VgSchedReturnCode VG_(scheduler) ( ThreadId tid )
about to start in a signal handler). */
break;
case VEX_TRC_JMP_MAPFAIL:
/* Failure of arch-specific address translation (x86/amd64
segment override use) */
/* jrs 2005 03 11: is this correct? */
VG_(synth_fault)(tid);
break;
case VEX_TRC_JMP_EMWARN: {
static Int counts[EmWarn_NUMBER];
static Bool counts_initted = False;