From: Julian Seward Date: Wed, 20 Oct 2004 18:36:54 +0000 (+0000) Subject: Rearrange stuff a bit more logically. X-Git-Tag: svn/VALGRIND_3_0_1^2~944 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da6890980ddad8046a37110e803f10e5a376a5e6;p=thirdparty%2Fvalgrind.git Rearrange stuff a bit more logically. git-svn-id: svn://svn.valgrind.org/vex/trunk@390 --- diff --git a/VEX/head20041019/coregrind/vg_dispatch.S b/VEX/head20041019/coregrind/vg_dispatch.S index 2a29ca8f07..34affe1729 100644 --- a/VEX/head20041019/coregrind/vg_dispatch.S +++ b/VEX/head20041019/coregrind/vg_dispatch.S @@ -93,24 +93,6 @@ VG_(run_innerloop): movl VGOFF_(m_eip), %esi movl (%ebp, %esi, 4), %eax -dispatch_main: - /* Jump here to do a new dispatch. - %eax holds destination (original) address. - %ebp indicates further details of the control transfer - requested to the address in %eax. - - If ebp == & VG_(baseBlock), just jump next to %eax. - - If ebp == VG_EBP_JMP_SYSCALL, do a system call before - continuing at eax. - - If ebp == VG_EBP_JMP_CLIENTREQ, do a client request before - continuing at eax. - - If %ebp has any other value, we panic. - */ - /*cmpl $VG_(baseBlock), %ebp*/ - /*jnz dispatch_exceptional*/ /* fall into main loop */ @@ -132,6 +114,22 @@ dispatch_boring: incl VG_(unchained_jumps_done) /* update stats */ call *%ebx + /* + %eax holds destination (original) address. + %ebp indicates further details of the control transfer + requested to the address in %eax. + + If ebp == & VG_(baseBlock), just jump next to %eax. + + If ebp == VG_EBP_JMP_SYSCALL, do a system call before + continuing at eax. + + If ebp == VG_EBP_JMP_CLIENTREQ, do a client request before + continuing at eax. + + If %ebp has any other value, we panic. + */ + cmpl $VG_(baseBlock), %ebp jz dispatch_boring