]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Renaming only (no functional change): rename IR artefacts to do
authorJulian Seward <jseward@acm.org>
Sun, 4 May 2014 10:52:11 +0000 (10:52 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 4 May 2014 10:52:11 +0000 (10:52 +0000)
with i-cache invalidation to be more consistent with new d-cache
invalidation functionality:
  Ijk_TInval          -> Ijk_InvalICache
  TISTART             -> CMSTART (CM == "Cache Management")
  TILEN               -> CMLEN
  VEX_TRC_JMP_TINVAL  -> VEX_TRC_JMP_INVALICACHE

git-svn-id: svn://svn.valgrind.org/vex/trunk@2852

44 files changed:
VEX/priv/guest_amd64_helpers.c
VEX/priv/guest_amd64_toIR.c
VEX/priv/guest_arm64_helpers.c
VEX/priv/guest_arm64_toIR.c
VEX/priv/guest_arm_helpers.c
VEX/priv/guest_arm_toIR.c
VEX/priv/guest_generic_bb_to_IR.c
VEX/priv/guest_generic_bb_to_IR.h
VEX/priv/guest_mips_helpers.c
VEX/priv/guest_mips_toIR.c
VEX/priv/guest_ppc_helpers.c
VEX/priv/guest_ppc_toIR.c
VEX/priv/guest_s390_helpers.c
VEX/priv/guest_s390_toIR.c
VEX/priv/guest_x86_helpers.c
VEX/priv/guest_x86_toIR.c
VEX/priv/host_amd64_defs.c
VEX/priv/host_amd64_isel.c
VEX/priv/host_arm64_defs.c
VEX/priv/host_arm64_isel.c
VEX/priv/host_arm_defs.c
VEX/priv/host_arm_isel.c
VEX/priv/host_mips_defs.c
VEX/priv/host_mips_isel.c
VEX/priv/host_ppc_defs.c
VEX/priv/host_ppc_isel.c
VEX/priv/host_s390_defs.c
VEX/priv/host_s390_isel.c
VEX/priv/host_x86_defs.c
VEX/priv/host_x86_isel.c
VEX/priv/ir_defs.c
VEX/priv/main_main.c
VEX/pub/libvex.h
VEX/pub/libvex_guest_amd64.h
VEX/pub/libvex_guest_arm.h
VEX/pub/libvex_guest_arm64.h
VEX/pub/libvex_guest_mips32.h
VEX/pub/libvex_guest_mips64.h
VEX/pub/libvex_guest_ppc32.h
VEX/pub/libvex_guest_ppc64.h
VEX/pub/libvex_guest_s390x.h
VEX/pub/libvex_guest_x86.h
VEX/pub/libvex_ir.h
VEX/pub/libvex_trc_values.h

index c1dfe6b56bf70c799d5f4497c7f5b62c25b6d6db..6ca67e9f34e463368541abf2055011b252e2eb06 100644 (file)
@@ -3818,8 +3818,8 @@ void LibVEX_GuestAMD64_initialise ( /*OUT*/VexGuestAMD64State* vex_state )
 
    /* These should not ever be either read or written, but we
       initialise them anyway. */
-   vex_state->guest_TISTART = 0;
-   vex_state->guest_TILEN   = 0;
+   vex_state->guest_CMSTART = 0;
+   vex_state->guest_CMLEN   = 0;
 
    vex_state->guest_NRADDR   = 0;
    vex_state->guest_SC_CLASS = 0;
@@ -3924,8 +3924,8 @@ VexGuestLayout
                  // /* */ ALWAYSDEFD(guest_GDT),
                  /* 10 */ ALWAYSDEFD(guest_EMNOTE),
                  /* 11 */ ALWAYSDEFD(guest_SSEROUND),
-                 /* 12 */ ALWAYSDEFD(guest_TISTART),
-                 /* 13 */ ALWAYSDEFD(guest_TILEN),
+                 /* 12 */ ALWAYSDEFD(guest_CMSTART),
+                 /* 13 */ ALWAYSDEFD(guest_CMLEN),
                  /* 14 */ ALWAYSDEFD(guest_SC_CLASS),
                  /* 15 */ ALWAYSDEFD(guest_IP_AT_SYSCALL)
                }
index 7462c3b1ae6c2b7190db84c599d00671dc53277a..40da6bf2818e50f20ff3f738817793868f9576d8 100644 (file)
@@ -432,8 +432,8 @@ static void unimplemented ( const HChar* str )
 #define OFFB_YMM16     offsetof(VexGuestAMD64State,guest_YMM16)
 
 #define OFFB_EMNOTE    offsetof(VexGuestAMD64State,guest_EMNOTE)
-#define OFFB_TISTART   offsetof(VexGuestAMD64State,guest_TISTART)
-#define OFFB_TILEN     offsetof(VexGuestAMD64State,guest_TILEN)
+#define OFFB_CMSTART   offsetof(VexGuestAMD64State,guest_CMSTART)
+#define OFFB_CMLEN     offsetof(VexGuestAMD64State,guest_CMLEN)
 
 #define OFFB_NRADDR    offsetof(VexGuestAMD64State,guest_NRADDR)
 
@@ -13516,14 +13516,14 @@ Long dis_ESC_0F__SSE2 ( Bool* decode_OK,
 
          /* Round addr down to the start of the containing block. */
          stmt( IRStmt_Put(
-                  OFFB_TISTART,
+                  OFFB_CMSTART,
                   binop( Iop_And64, 
                          mkexpr(addr), 
                          mkU64( ~(lineszB-1) ))) );
 
-         stmt( IRStmt_Put(OFFB_TILEN, mkU64(lineszB) ) );
+         stmt( IRStmt_Put(OFFB_CMLEN, mkU64(lineszB) ) );
 
-         jmp_lit(dres, Ijk_TInval, (Addr64)(guest_RIP_bbstart+delta));
+         jmp_lit(dres, Ijk_InvalICache, (Addr64)(guest_RIP_bbstart+delta));
 
          DIP("clflush %s\n", dis_buf);
          goto decode_success;
@@ -31130,14 +31130,14 @@ DisResult disInstr_AMD64_WRK (
             // injecting here can change. In which case the translation has to
             // be redone. For ease of handling, we simply invalidate all the
             // time.
-            stmt(IRStmt_Put(OFFB_TISTART, mkU64(guest_RIP_curr_instr)));
-            stmt(IRStmt_Put(OFFB_TILEN,   mkU64(19)));
+            stmt(IRStmt_Put(OFFB_CMSTART, mkU64(guest_RIP_curr_instr)));
+            stmt(IRStmt_Put(OFFB_CMLEN,   mkU64(19)));
    
             delta += 19;
 
             stmt( IRStmt_Put( OFFB_RIP, mkU64(guest_RIP_bbstart + delta) ) );
             dres.whatNext    = Dis_StopHere;
-            dres.jk_StopHere = Ijk_TInval;
+            dres.jk_StopHere = Ijk_InvalICache;
             goto decode_success;
          }
          /* We don't know what it is. */
index 4d67ecfb89dd71d4bcd284f9d1b5c03a608daa63..0ff080383defe38073a2a21f66e3c10ebcdc07c1 100644 (file)
@@ -1134,8 +1134,8 @@ void LibVEX_GuestARM64_initialise ( /*OUT*/VexGuestARM64State* vex_state )
 //ZZ    vex_state->guest_GEFLAG3 = 0;
 //ZZ 
 //ZZ    vex_state->guest_EMNOTE  = EmNote_NONE;
-//ZZ    vex_state->guest_TISTART = 0;
-//ZZ    vex_state->guest_TILEN   = 0;
+//ZZ    vex_state->guest_CMSTART = 0;
+//ZZ    vex_state->guest_CMLEN   = 0;
 //ZZ    vex_state->guest_NRADDR  = 0;
 //ZZ    vex_state->guest_IP_AT_SYSCALL = 0;
 //ZZ 
@@ -1277,8 +1277,8 @@ VexGuestLayout
                  /* 1 */ ALWAYSDEFD(guest_CC_OP),
                  /* 2 */ ALWAYSDEFD(guest_CC_NDEP),
                  /* 3 */ ALWAYSDEFD(guest_EMNOTE),
-                 /* 4 */ ALWAYSDEFD(guest_TISTART),
-                 /* 5 */ ALWAYSDEFD(guest_TILEN),
+                 /* 4 */ ALWAYSDEFD(guest_CMSTART),
+                 /* 5 */ ALWAYSDEFD(guest_CMLEN),
                  /* 6 */ ALWAYSDEFD(guest_NRADDR),
                  /* 7 */ ALWAYSDEFD(guest_IP_AT_SYSCALL),
                  /* 8 */ ALWAYSDEFD(guest_FPCR),
index e9ad82af8eb198e6953f36a1341455e01091222f..a8e077cf77cab8a44196031c8009bd52436ccd9f 100644 (file)
@@ -695,8 +695,8 @@ static IRExpr* narrowFrom64 ( IRType dstTy, IRExpr* e )
 //ZZ #define OFFB_GEFLAG2  offsetof(VexGuestARMState,guest_GEFLAG2)
 //ZZ #define OFFB_GEFLAG3  offsetof(VexGuestARMState,guest_GEFLAG3)
 
-#define OFFB_TISTART  offsetof(VexGuestARM64State,guest_TISTART)
-#define OFFB_TILEN    offsetof(VexGuestARM64State,guest_TILEN)
+#define OFFB_CMSTART  offsetof(VexGuestARM64State,guest_CMSTART)
+#define OFFB_CMLEN    offsetof(VexGuestARM64State,guest_CMLEN)
 
 
 /* ---------------- Integer registers ---------------- */
@@ -4673,13 +4673,13 @@ Bool dis_ARM64_branch_etc(/*MB_OUT*/DisResult* dres, UInt insn,
                            mkU64(~(lineszB - 1))) );
       /* Set the invalidation range, request exit-and-invalidate, with
          continuation at the next instruction. */
-      stmt(IRStmt_Put(OFFB_TISTART, mkexpr(addr)));
-      stmt(IRStmt_Put(OFFB_TILEN,   mkU64(lineszB)));
+      stmt(IRStmt_Put(OFFB_CMSTART, mkexpr(addr)));
+      stmt(IRStmt_Put(OFFB_CMLEN,   mkU64(lineszB)));
       /* be paranoid ... */
       stmt( IRStmt_MBE(Imbe_Fence) );
       putPC(mkU64( guest_PC_curr_instr + 4 ));
       dres->whatNext    = Dis_StopHere;
-      dres->jk_StopHere = Ijk_TInval;
+      dres->jk_StopHere = Ijk_InvalICache;
       DIP("ic ivau, %s\n", nameIReg64orZR(tt));
       return True;
    }
@@ -4689,8 +4689,8 @@ Bool dis_ARM64_branch_etc(/*MB_OUT*/DisResult* dres, UInt insn,
    */
    if ((INSN(31,0) & 0xFFFFFFE0) == 0xD50B7B20) {
       /* Exactly the same scheme as for IC IVAU, except we observe the
-         dMinLine size, and request an Ijk_InvalData instead of
-         Ijk_TInval. */
+         dMinLine size, and request an Ijk_FlushDCache instead of
+         Ijk_InvalICache. */
       /* We will always be provided with a valid dMinLine value. */
       vassert(archinfo->arm64_dMinLine_lg2_szB >= 2
               && archinfo->arm64_dMinLine_lg2_szB <= 17);
@@ -4704,8 +4704,8 @@ Bool dis_ARM64_branch_etc(/*MB_OUT*/DisResult* dres, UInt insn,
                            mkU64(~(lineszB - 1))) );
       /* Set the flush range, request exit-and-flush, with
          continuation at the next instruction. */
-      stmt(IRStmt_Put(OFFB_TISTART, mkexpr(addr)));
-      stmt(IRStmt_Put(OFFB_TILEN,   mkU64(lineszB)));
+      stmt(IRStmt_Put(OFFB_CMSTART, mkexpr(addr)));
+      stmt(IRStmt_Put(OFFB_CMLEN,   mkU64(lineszB)));
       /* be paranoid ... */
       stmt( IRStmt_MBE(Imbe_Fence) );
       putPC(mkU64( guest_PC_curr_instr + 4 ));
@@ -7218,11 +7218,11 @@ Bool disInstr_ARM64_WRK (
             // injecting here can change. In which case the translation has to
             // be redone. For ease of handling, we simply invalidate all the
             // time.
-            stmt(IRStmt_Put(OFFB_TISTART, mkU64(guest_PC_curr_instr)));
-            stmt(IRStmt_Put(OFFB_TILEN,   mkU64(20)));
+            stmt(IRStmt_Put(OFFB_CMSTART, mkU64(guest_PC_curr_instr)));
+            stmt(IRStmt_Put(OFFB_CMLEN,   mkU64(20)));
             putPC(mkU64( guest_PC_curr_instr + 20 ));
             dres->whatNext    = Dis_StopHere;
-            dres->jk_StopHere = Ijk_TInval;
+            dres->jk_StopHere = Ijk_InvalICache;
             return True;
          }
          /* We don't know what it is. */
index ddaf3355ebd784c72fc4a5ac2b9f05ccca680d32..2eeb13a0f04a4469170cbef0cff5cb887dda7ba2 100644 (file)
@@ -981,8 +981,8 @@ void LibVEX_GuestARM_initialise ( /*OUT*/VexGuestARMState* vex_state )
    vex_state->guest_GEFLAG3 = 0;
 
    vex_state->guest_EMNOTE  = EmNote_NONE;
-   vex_state->guest_TISTART = 0;
-   vex_state->guest_TILEN   = 0;
+   vex_state->guest_CMSTART = 0;
+   vex_state->guest_CMLEN   = 0;
    vex_state->guest_NRADDR  = 0;
    vex_state->guest_IP_AT_SYSCALL = 0;
 
@@ -1126,8 +1126,8 @@ VexGuestLayout
                  /* 1 */ ALWAYSDEFD(guest_CC_OP),
                  /* 2 */ ALWAYSDEFD(guest_CC_NDEP),
                  /* 3 */ ALWAYSDEFD(guest_EMNOTE),
-                 /* 4 */ ALWAYSDEFD(guest_TISTART),
-                 /* 5 */ ALWAYSDEFD(guest_TILEN),
+                 /* 4 */ ALWAYSDEFD(guest_CMSTART),
+                 /* 5 */ ALWAYSDEFD(guest_CMLEN),
                  /* 6 */ ALWAYSDEFD(guest_NRADDR),
                  /* 7 */ ALWAYSDEFD(guest_IP_AT_SYSCALL),
                  /* 8 */ ALWAYSDEFD(guest_TPIDRURO),
index e3fc4b9924be1a22e5dff1f0efbe104b9e2f54cf..9ad47c47716d053345b47bcf2b718f78749499fc 100644 (file)
@@ -485,8 +485,8 @@ static IRExpr* align4if ( IRExpr* e, Bool b )
 #define OFFB_GEFLAG2  offsetof(VexGuestARMState,guest_GEFLAG2)
 #define OFFB_GEFLAG3  offsetof(VexGuestARMState,guest_GEFLAG3)
 
-#define OFFB_TISTART  offsetof(VexGuestARMState,guest_TISTART)
-#define OFFB_TILEN    offsetof(VexGuestARMState,guest_TILEN)
+#define OFFB_CMSTART  offsetof(VexGuestARMState,guest_CMSTART)
+#define OFFB_CMLEN    offsetof(VexGuestARMState,guest_CMLEN)
 
 
 /* ---------------- Integer registers ---------------- */
@@ -14605,11 +14605,11 @@ DisResult disInstr_ARM_WRK (
             // injecting here can change. In which case the translation has to
             // be redone. For ease of handling, we simply invalidate all the
             // time.
-            stmt(IRStmt_Put(OFFB_TISTART, mkU32(guest_R15_curr_instr_notENC)));
-            stmt(IRStmt_Put(OFFB_TILEN,   mkU32(20)));
+            stmt(IRStmt_Put(OFFB_CMSTART, mkU32(guest_R15_curr_instr_notENC)));
+            stmt(IRStmt_Put(OFFB_CMLEN,   mkU32(20)));
             llPutIReg(15, mkU32( guest_R15_curr_instr_notENC + 20 ));
             dres.whatNext    = Dis_StopHere;
-            dres.jk_StopHere = Ijk_TInval;
+            dres.jk_StopHere = Ijk_InvalICache;
             goto decode_success;
          }
          /* We don't know what it is.  Set opc1/opc2 so decode_failure
@@ -17450,11 +17450,11 @@ DisResult disInstr_THUMB_WRK (
             // injecting here can change. In which case the translation has to
             // be redone. For ease of handling, we simply invalidate all the
             // time.
-            stmt(IRStmt_Put(OFFB_TISTART, mkU32(guest_R15_curr_instr_notENC)));
-            stmt(IRStmt_Put(OFFB_TILEN,   mkU32(20)));
+            stmt(IRStmt_Put(OFFB_CMSTART, mkU32(guest_R15_curr_instr_notENC)));
+            stmt(IRStmt_Put(OFFB_CMLEN,   mkU32(20)));
             llPutIReg(15, mkU32( (guest_R15_curr_instr_notENC + 20) | 1 ));
             dres.whatNext    = Dis_StopHere;
-            dres.jk_StopHere = Ijk_TInval;
+            dres.jk_StopHere = Ijk_InvalICache;
             goto decode_success;
          }
          /* We don't know what it is.  Set insn0 so decode_failure
index 19c46df461a367dd355db9fee8072e837f534e13..8bba8de3957f2a6dc1c111e91af1789e4ffa3725 100644 (file)
@@ -131,8 +131,8 @@ static Bool const_False ( void* callback_opaque, Addr64 a ) {
    not to disassemble any instructions into it; this is indicated
    by the callback returning True.
 
-   offB_TIADDR and offB_TILEN are the offsets of guest_TIADDR and
-   guest_TILEN.  Since this routine has to work for any guest state,
+   offB_CMADDR and offB_CMLEN are the offsets of guest_CMADDR and
+   guest_CMLEN.  Since this routine has to work for any guest state,
    without knowing what it is, those offsets have to passed in.
 
    callback_opaque is a caller-supplied pointer to data which the
@@ -194,8 +194,8 @@ IRSB* bb_to_IR (
          /*IN*/ IRType           guest_word_type,
          /*IN*/ UInt             (*needs_self_check)(void*,VexGuestExtents*),
          /*IN*/ Bool             (*preamble_function)(void*,IRSB*),
-         /*IN*/ Int              offB_GUEST_TISTART,
-         /*IN*/ Int              offB_GUEST_TILEN,
+         /*IN*/ Int              offB_GUEST_CMSTART,
+         /*IN*/ Int              offB_GUEST_CMLEN,
          /*IN*/ Int              offB_GUEST_IP,
          /*IN*/ Int              szB_GUEST_IP
       )
@@ -663,7 +663,7 @@ IRSB* bb_to_IR (
             vassert(!nm_spec);
          }
 
-         /* Set TISTART and TILEN.  These will describe to the despatcher
+         /* Set CMSTART and CMLEN.  These will describe to the despatcher
             the area of guest code to invalidate should we exit with a
             self-check failure. */
 
@@ -684,10 +684,10 @@ IRSB* bb_to_IR (
             = IRStmt_WrTmp(tilen_tmp, IRExpr_Const(len2check_IRConst) );
 
          irsb->stmts[selfcheck_idx + i * 5 + 2]
-            = IRStmt_Put( offB_GUEST_TISTART, IRExpr_RdTmp(tistart_tmp) );
+            = IRStmt_Put( offB_GUEST_CMSTART, IRExpr_RdTmp(tistart_tmp) );
 
          irsb->stmts[selfcheck_idx + i * 5 + 3]
-            = IRStmt_Put( offB_GUEST_TILEN, IRExpr_RdTmp(tilen_tmp) );
+            = IRStmt_Put( offB_GUEST_CMLEN, IRExpr_RdTmp(tilen_tmp) );
 
          /* Generate the entry point descriptors */
          if (abiinfo_both->host_ppc_calls_use_fndescrs) {
@@ -737,7 +737,7 @@ IRSB* bb_to_IR (
                           ? IRExpr_Const(IRConst_U64(expectedhW))
                           : IRExpr_Const(IRConst_U32(expectedhW))
                  ),
-                 Ijk_TInval,
+                 Ijk_InvalICache,
                  /* Where we must restart if there's a failure: at the
                     first extent, regardless of which extent the
                     failure actually happened in. */
index f0817da6c32b5b2e8523a29cb5abdbfd588c5c54..30e216dcd8e4865cd7b071ac35cbe7ee43cd8a0e 100644 (file)
@@ -184,8 +184,8 @@ IRSB* bb_to_IR (
          /*IN*/ IRType           guest_word_type,
          /*IN*/ UInt             (*needs_self_check)(void*,VexGuestExtents*),
          /*IN*/ Bool             (*preamble_function)(void*,IRSB*),
-         /*IN*/ Int              offB_GUEST_TISTART,
-         /*IN*/ Int              offB_GUEST_TILEN,
+         /*IN*/ Int              offB_GUEST_CMSTART,
+         /*IN*/ Int              offB_GUEST_CMLEN,
          /*IN*/ Int              offB_GUEST_IP,
          /*IN*/ Int              szB_GUEST_IP
       );
index 07911b005638ff2b7379d11b231cdfd203a6de82..e76da14b5a4cbeea51374669f20963efdd1decbc 100644 (file)
@@ -150,8 +150,8 @@ void LibVEX_GuestMIPS32_initialise( /*OUT*/ VexGuestMIPS32State * vex_state)
    vex_state->guest_EMNOTE = 0;
 
    /* For clflush: record start and length of area to invalidate */
-   vex_state->guest_TISTART = 0;
-   vex_state->guest_TILEN = 0;
+   vex_state->guest_CMSTART = 0;
+   vex_state->guest_CMLEN = 0;
    vex_state->host_EvC_COUNTER = 0;
    vex_state->host_EvC_FAILADDR = 0;
 
@@ -258,8 +258,8 @@ void LibVEX_GuestMIPS64_initialise ( /*OUT*/ VexGuestMIPS64State * vex_state )
    vex_state->guest_EMNOTE = 0;
 
    /* For clflush: record start and length of area to invalidate */
-   vex_state->guest_TISTART = 0;
-   vex_state->guest_TILEN = 0;
+   vex_state->guest_CMSTART = 0;
+   vex_state->guest_CMLEN = 0;
    vex_state->host_EvC_COUNTER = 0;
    vex_state->host_EvC_FAILADDR = 0;
 
@@ -375,8 +375,8 @@ VexGuestLayout mips32Guest_layout = {
              /* 0 */ ALWAYSDEFD32(guest_r0),
              /* 1 */ ALWAYSDEFD32(guest_r1),
              /* 2 */ ALWAYSDEFD32(guest_EMNOTE),
-             /* 3 */ ALWAYSDEFD32(guest_TISTART),
-             /* 4 */ ALWAYSDEFD32(guest_TILEN),
+             /* 3 */ ALWAYSDEFD32(guest_CMSTART),
+             /* 4 */ ALWAYSDEFD32(guest_CMLEN),
              /* 5 */ ALWAYSDEFD32(guest_r29),
              /* 6 */ ALWAYSDEFD32(guest_r31),
              /* 7 */ ALWAYSDEFD32(guest_ULR)
@@ -402,8 +402,8 @@ VexGuestLayout mips64Guest_layout = {
    .alwaysDefd = {
                   /* 0 */ ALWAYSDEFD64 (guest_r0),
                   /* 1 */ ALWAYSDEFD64 (guest_EMNOTE),
-                  /* 2 */ ALWAYSDEFD64 (guest_TISTART),
-                  /* 3 */ ALWAYSDEFD64 (guest_TILEN),
+                  /* 2 */ ALWAYSDEFD64 (guest_CMSTART),
+                  /* 3 */ ALWAYSDEFD64 (guest_CMLEN),
                   /* 4 */ ALWAYSDEFD64 (guest_r29),
                   /* 5 */ ALWAYSDEFD64 (guest_r31),
                   /* 6 */ ALWAYSDEFD64 (guest_ULR)
index 51e7cfc7ed042c63f2ef363ae9f23067b26c3e5e..92059ede0c6d559f3bf7bf15501352217fcc50db 100644 (file)
@@ -11801,22 +11801,22 @@ static DisResult disInstr_MIPS_WRK ( Bool(*resteerOkFn) (/*opaque */void *,
             vex_inject_ir(irsb, Iend_BE);
 #endif
             if (mode64) {
-               stmt(IRStmt_Put(offsetof(VexGuestMIPS64State, guest_TISTART),
+               stmt(IRStmt_Put(offsetof(VexGuestMIPS64State, guest_CMSTART),
                                mkU64(guest_PC_curr_instr)));
-               stmt(IRStmt_Put(offsetof(VexGuestMIPS64State, guest_TILEN),
+               stmt(IRStmt_Put(offsetof(VexGuestMIPS64State, guest_CMLEN),
                                mkU64(20)));
 
                putPC(mkU64(guest_PC_curr_instr + 20));
             } else {
-               stmt(IRStmt_Put(offsetof(VexGuestMIPS32State, guest_TISTART),
+               stmt(IRStmt_Put(offsetof(VexGuestMIPS32State, guest_CMSTART),
                                mkU32(guest_PC_curr_instr)));
-               stmt(IRStmt_Put(offsetof(VexGuestMIPS32State, guest_TILEN),
+               stmt(IRStmt_Put(offsetof(VexGuestMIPS32State, guest_CMLEN),
                                mkU32(20)));
 
                putPC(mkU32(guest_PC_curr_instr + 20));
             }
             dres.whatNext    = Dis_StopHere;
-            dres.jk_StopHere = Ijk_TInval;
+            dres.jk_StopHere = Ijk_InvalICache;
             dres.len = 20;
             delta += 20;
             goto decode_success;
index 030deddcd7728639714145c0f23d8da57aabbbc4..2db109b1b1b33ac04bc9636193393a4ca376b37a 100644 (file)
@@ -498,8 +498,8 @@ void LibVEX_GuestPPC32_initialise ( /*OUT*/VexGuestPPC32State* vex_state )
 
    vex_state->guest_EMNOTE = EmNote_NONE;
 
-   vex_state->guest_TISTART = 0;
-   vex_state->guest_TILEN   = 0;
+   vex_state->guest_CMSTART = 0;
+   vex_state->guest_CMLEN   = 0;
 
    vex_state->guest_NRADDR = 0;
    vex_state->guest_NRADDR_GPR2 = 0;
@@ -665,8 +665,8 @@ void LibVEX_GuestPPC64_initialise ( /*OUT*/VexGuestPPC64State* vex_state )
 
    vex_state->padding = 0;
 
-   vex_state->guest_TISTART = 0;
-   vex_state->guest_TILEN   = 0;
+   vex_state->guest_CMSTART = 0;
+   vex_state->guest_CMLEN   = 0;
 
    vex_state->guest_NRADDR = 0;
    vex_state->guest_NRADDR_GPR2 = 0;
@@ -808,8 +808,8 @@ VexGuestLayout
           .alwaysDefd 
          = { /*  0 */ ALWAYSDEFD32(guest_CIA),
              /*  1 */ ALWAYSDEFD32(guest_EMNOTE),
-             /*  2 */ ALWAYSDEFD32(guest_TISTART),
-             /*  3 */ ALWAYSDEFD32(guest_TILEN),
+             /*  2 */ ALWAYSDEFD32(guest_CMSTART),
+             /*  3 */ ALWAYSDEFD32(guest_CMLEN),
              /*  4 */ ALWAYSDEFD32(guest_VSCR),
              /*  5 */ ALWAYSDEFD32(guest_FPROUND),
               /*  6 */ ALWAYSDEFD32(guest_NRADDR),
@@ -849,8 +849,8 @@ VexGuestLayout
           .alwaysDefd 
          = { /*  0 */ ALWAYSDEFD64(guest_CIA),
              /*  1 */ ALWAYSDEFD64(guest_EMNOTE),
-             /*  2 */ ALWAYSDEFD64(guest_TISTART),
-             /*  3 */ ALWAYSDEFD64(guest_TILEN),
+             /*  2 */ ALWAYSDEFD64(guest_CMSTART),
+             /*  3 */ ALWAYSDEFD64(guest_CMLEN),
              /*  4 */ ALWAYSDEFD64(guest_VSCR),
              /*  5 */ ALWAYSDEFD64(guest_FPROUND),
              /*  6 */ ALWAYSDEFD64(guest_NRADDR),
index f6d93b04f15367d244100aa09d2eafc471ed8fa8..281b3f899b18587e6bf03d3eb2dd8bbe282e36c9 100644 (file)
@@ -228,8 +228,8 @@ static void* fnptr_to_fnentry( VexAbiInfo* vbi, void* f )
 #define OFFB_VRSAVE      offsetofPPCGuestState(guest_VRSAVE)
 #define OFFB_VSCR        offsetofPPCGuestState(guest_VSCR)
 #define OFFB_EMNOTE      offsetofPPCGuestState(guest_EMNOTE)
-#define OFFB_TISTART     offsetofPPCGuestState(guest_TISTART)
-#define OFFB_TILEN       offsetofPPCGuestState(guest_TILEN)
+#define OFFB_CMSTART     offsetofPPCGuestState(guest_CMSTART)
+#define OFFB_CMLEN       offsetofPPCGuestState(guest_CMLEN)
 #define OFFB_NRADDR      offsetofPPCGuestState(guest_NRADDR)
 #define OFFB_NRADDR_GPR2 offsetofPPCGuestState(guest_NRADDR_GPR2)
 #define OFFB_TFHAR       offsetofPPCGuestState(guest_TFHAR)
@@ -377,8 +377,8 @@ typedef enum {
     PPC_GST_VRSAVE, // Vector Save/Restore Register
     PPC_GST_VSCR,   // Vector Status and Control Register
     PPC_GST_EMWARN, // Emulation warnings
-    PPC_GST_TISTART,// For icbi: start of area to invalidate
-    PPC_GST_TILEN,  // For icbi: length of area to invalidate
+    PPC_GST_CMSTART,// For icbi: start of area to invalidate
+    PPC_GST_CMLEN,  // For icbi: length of area to invalidate
     PPC_GST_IP_AT_SYSCALL, // the CIA of the most recently executed SC insn
     PPC_GST_SPRG3_RO, // SPRG3
     PPC_GST_TFHAR,  // Transactional Failure Handler Address Register
@@ -2781,14 +2781,14 @@ static void putGST ( PPC_GST reg, IRExpr* src )
       stmt( IRStmt_Put( OFFB_EMNOTE,src) );
       break;
       
-   case PPC_GST_TISTART: 
+   case PPC_GST_CMSTART: 
       vassert( ty_src == ty );
-      stmt( IRStmt_Put( OFFB_TISTART, src) );
+      stmt( IRStmt_Put( OFFB_CMSTART, src) );
       break;
       
-   case PPC_GST_TILEN: 
+   case PPC_GST_CMLEN: 
       vassert( ty_src == ty );
-      stmt( IRStmt_Put( OFFB_TILEN, src) );
+      stmt( IRStmt_Put( OFFB_CMLEN, src) );
       break;
       
    case PPC_GST_TEXASR:
@@ -7257,14 +7257,14 @@ static Bool dis_cache_manage ( UInt         theInstr,
       assign( addr, binop( mkSzOp(ty, Iop_And8),
                            mkexpr(EA),
                            mkSzImm(ty, ~(((ULong)lineszB)-1) )) );
-      putGST( PPC_GST_TISTART, mkexpr(addr) );
-      putGST( PPC_GST_TILEN, mkSzImm(ty, lineszB) );
+      putGST( PPC_GST_CMSTART, mkexpr(addr) );
+      putGST( PPC_GST_CMLEN, mkSzImm(ty, lineszB) );
 
       /* be paranoid ... */
       stmt( IRStmt_MBE(Imbe_Fence) );
 
       putGST( PPC_GST_CIA, mkSzImm(ty, nextInsnAddr()));
-      dres->jk_StopHere = Ijk_TInval;
+      dres->jk_StopHere = Ijk_InvalICache;
       dres->whatNext    = Dis_StopHere;
       break;
    }
@@ -18594,12 +18594,12 @@ DisResult disInstr_PPC_WRK (
             // be redone. For ease of handling, we simply invalidate all the
             // time.
 
-            stmt(IRStmt_Put(OFFB_TISTART, mkSzImm(ty, guest_CIA_curr_instr)));
-            stmt(IRStmt_Put(OFFB_TILEN,   mkSzImm(ty, 20)));
+            stmt(IRStmt_Put(OFFB_CMSTART, mkSzImm(ty, guest_CIA_curr_instr)));
+            stmt(IRStmt_Put(OFFB_CMLEN,   mkSzImm(ty, 20)));
    
             putGST( PPC_GST_CIA, mkSzImm( ty, guest_CIA_bbstart + delta ));
             dres.whatNext    = Dis_StopHere;
-            dres.jk_StopHere = Ijk_TInval;
+            dres.jk_StopHere = Ijk_InvalICache;
             goto decode_success;
          }
          /* We don't know what it is.  Set opc1/opc2 so decode_failure
index 3feb3600a0a349c7dd9c81b43c3f33287f4204ae..9afbc1cb879b4a49c524606647e7d16296ef07ce 100644 (file)
@@ -128,8 +128,8 @@ LibVEX_GuestS390X_initialise(VexGuestS390XState *state)
 /*------------------------------------------------------------*/
 
    state->guest_NRADDR = 0;
-   state->guest_TISTART = 0;
-   state->guest_TILEN = 0;
+   state->guest_CMSTART = 0;
+   state->guest_CMLEN = 0;
    state->guest_IP_AT_SYSCALL = 0;
    state->guest_EMNOTE = EmNote_NONE;
    state->host_EvC_COUNTER = 0;
@@ -225,8 +225,8 @@ VexGuestLayout s390xGuest_layout = {
       /*  0 */ ALWAYSDEFD(guest_CC_OP),     /* generic */
       /*  1 */ ALWAYSDEFD(guest_CC_NDEP),   /* generic */
       /*  2 */ ALWAYSDEFD(guest_EMNOTE),    /* generic */
-      /*  3 */ ALWAYSDEFD(guest_TISTART),   /* generic */
-      /*  4 */ ALWAYSDEFD(guest_TILEN),     /* generic */
+      /*  3 */ ALWAYSDEFD(guest_CMSTART),   /* generic */
+      /*  4 */ ALWAYSDEFD(guest_CMLEN),     /* generic */
       /*  5 */ ALWAYSDEFD(guest_IP_AT_SYSCALL), /* generic */
       /*  6 */ ALWAYSDEFD(guest_IA),        /* control reg */
       /*  7 */ ALWAYSDEFD(guest_fpc),       /* control reg */
index eb750a87946c30656108f1fe134457b4afcf2563..b6fc165284a0bbe5f962d5e23c67989f23b1fc8e 100644 (file)
@@ -417,7 +417,8 @@ restart_if(IRExpr *condition)
 {
    vassert(typeOfIRExpr(irsb->tyenv, condition) == Ity_I1);
 
-   stmt(IRStmt_Exit(condition, Ijk_TInval, IRConst_U64(guest_IA_curr_instr),
+   stmt(IRStmt_Exit(condition, Ijk_InvalICache,
+                    IRConst_U64(guest_IA_curr_instr),
                     S390X_GUEST_OFFSET(guest_IA)));
 }
 
@@ -10862,9 +10863,9 @@ s390_irgen_EX_SS(UChar r, IRTemp addr2,
    stmt(IRStmt_Dirty(d));
 
    /* and restart */
-   stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_TISTART),
+   stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_CMSTART),
                    mkU64(guest_IA_curr_instr)));
-   stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_TILEN), mkU64(4)));
+   stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_CMLEN), mkU64(4)));
    restart_if(mkexpr(cond));
 
    ss.bytes = last_execute_target;
@@ -10893,15 +10894,15 @@ s390_irgen_EX(UChar r1, IRTemp addr2)
                              mkIRExprVec_1(load(Ity_I64, mkexpr(addr2))));
       stmt(IRStmt_Dirty(d));
       /* and restart */
-      stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_TISTART),
+      stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_CMSTART),
                       mkU64(guest_IA_curr_instr)));
-      stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_TILEN), mkU64(4)));
+      stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_CMLEN), mkU64(4)));
       restart_if(IRExpr_Const(IRConst_U1(True)));
 
       /* we know that this will be invalidated */
       put_IA(mkaddr_expr(guest_IA_next_instr));
       dis_res->whatNext = Dis_StopHere;
-      dis_res->jk_StopHere = Ijk_TInval;
+      dis_res->jk_StopHere = Ijk_InvalICache;
       break;
    }
 
@@ -10967,8 +10968,8 @@ s390_irgen_EX(UChar r1, IRTemp addr2)
       stmt(IRStmt_Dirty(d));
 
       /* and restart */
-      stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_TISTART), mkU64(guest_IA_curr_instr)));
-      stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_TILEN), mkU64(4)));
+      stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_CMSTART), mkU64(guest_IA_curr_instr)));
+      stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_CMLEN), mkU64(4)));
       restart_if(mkexpr(cond));
 
       /* Now comes the actual translation */
@@ -16362,16 +16363,16 @@ s390_decode_special_and_irgen(UChar *bytes)
          injecting here can change. In which case the translation has to
          be redone. For ease of handling, we simply invalidate all the
          time. */
-      stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_TISTART),
+      stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_CMSTART),
                       mkU64(guest_IA_curr_instr)));
-      stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_TILEN),
+      stmt(IRStmt_Put(S390X_GUEST_OFFSET(guest_CMLEN),
                       mkU64(guest_IA_next_instr - guest_IA_curr_instr)));
       vassert(guest_IA_next_instr - guest_IA_curr_instr ==
               S390_SPECIAL_OP_PREAMBLE_SIZE + S390_SPECIAL_OP_SIZE);
 
       put_IA(mkaddr_expr(guest_IA_next_instr));
       dis_res->whatNext    = Dis_StopHere;
-      dis_res->jk_StopHere = Ijk_TInval;
+      dis_res->jk_StopHere = Ijk_InvalICache;
    } else {
       /* We don't know what it is. */
       return S390_DECODE_UNKNOWN_SPECIAL_INSN;
index fe808b0b8f20a168833bc6533e70ead2dc9d5ea5..1272fcec2ef884f00490e47c74b567b41125b37e 100644 (file)
@@ -2757,8 +2757,8 @@ void LibVEX_GuestX86_initialise ( /*OUT*/VexGuestX86State* vex_state )
    vex_state->guest_EMNOTE = EmNote_NONE;
 
    /* SSE2 has a 'clflush' cache-line-invalidator which uses these. */
-   vex_state->guest_TISTART = 0;
-   vex_state->guest_TILEN   = 0;
+   vex_state->guest_CMSTART = 0;
+   vex_state->guest_CMLEN   = 0;
 
    vex_state->guest_NRADDR   = 0;
    vex_state->guest_SC_CLASS = 0;
@@ -2862,8 +2862,8 @@ VexGuestLayout
                  /* 17 */ ALWAYSDEFD(guest_GDT),
                  /* 18 */ ALWAYSDEFD(guest_EMNOTE),
                  /* 19 */ ALWAYSDEFD(guest_SSEROUND),
-                 /* 20 */ ALWAYSDEFD(guest_TISTART),
-                 /* 21 */ ALWAYSDEFD(guest_TILEN),
+                 /* 20 */ ALWAYSDEFD(guest_CMSTART),
+                 /* 21 */ ALWAYSDEFD(guest_CMLEN),
                  /* 22 */ ALWAYSDEFD(guest_SC_CLASS),
                  /* 23 */ ALWAYSDEFD(guest_IP_AT_SYSCALL)
                }
index bcb821c99b286f3937c15fb6060e8b04303316d5..37afd9736e97f714ca427bd35ef7ce3b6dd640c8 100644 (file)
@@ -275,8 +275,8 @@ static IRSB* irsb;
 
 #define OFFB_EMNOTE    offsetof(VexGuestX86State,guest_EMNOTE)
 
-#define OFFB_TISTART   offsetof(VexGuestX86State,guest_TISTART)
-#define OFFB_TILEN     offsetof(VexGuestX86State,guest_TILEN)
+#define OFFB_CMSTART   offsetof(VexGuestX86State,guest_CMSTART)
+#define OFFB_CMLEN     offsetof(VexGuestX86State,guest_CMLEN)
 #define OFFB_NRADDR    offsetof(VexGuestX86State,guest_NRADDR)
 
 #define OFFB_IP_AT_SYSCALL offsetof(VexGuestX86State,guest_IP_AT_SYSCALL)
@@ -8167,14 +8167,14 @@ DisResult disInstr_X86_WRK (
             // injecting here can change. In which case the translation has to
             // be redone. For ease of handling, we simply invalidate all the
             // time.
-            stmt(IRStmt_Put(OFFB_TISTART, mkU32(guest_EIP_curr_instr)));
-            stmt(IRStmt_Put(OFFB_TILEN,   mkU32(14)));
+            stmt(IRStmt_Put(OFFB_CMSTART, mkU32(guest_EIP_curr_instr)));
+            stmt(IRStmt_Put(OFFB_CMLEN,   mkU32(14)));
    
             delta += 14;
 
             stmt( IRStmt_Put( OFFB_EIP, mkU32(guest_EIP_bbstart + delta) ) );
             dres.whatNext    = Dis_StopHere;
-            dres.jk_StopHere = Ijk_TInval;
+            dres.jk_StopHere = Ijk_InvalICache;
             goto decode_success;
          }
          /* We don't know what it is. */
@@ -11754,14 +11754,14 @@ DisResult disInstr_X86_WRK (
 
       /* Round addr down to the start of the containing block. */
       stmt( IRStmt_Put(
-               OFFB_TISTART,
+               OFFB_CMSTART,
                binop( Iop_And32, 
                       mkexpr(addr), 
                       mkU32( ~(lineszB-1) ))) );
 
-      stmt( IRStmt_Put(OFFB_TILEN, mkU32(lineszB) ) );
+      stmt( IRStmt_Put(OFFB_CMLEN, mkU32(lineszB) ) );
 
-      jmp_lit(&dres, Ijk_TInval, (Addr32)(guest_EIP_bbstart+delta));
+      jmp_lit(&dres, Ijk_InvalICache, (Addr32)(guest_EIP_bbstart+delta));
 
       DIP("clflush %s\n", dis_buf);
       goto decode_success;
index 0f3acc8235ae9af800a92d91526c9178c7c97e7a..cd5893dd2f77d578f943ec0f1ec0e6f8be0cddde 100644 (file)
@@ -2865,7 +2865,7 @@ Int emit_AMD64Instr ( /*MB_MOD*/Bool* is_profInc,
          case Ijk_EmWarn:      trcval = VEX_TRC_JMP_EMWARN;      break;
          case Ijk_MapFail:     trcval = VEX_TRC_JMP_MAPFAIL;     break;
          case Ijk_NoDecode:    trcval = VEX_TRC_JMP_NODECODE;    break;
-         case Ijk_TInval:      trcval = VEX_TRC_JMP_TINVAL;      break;
+         case Ijk_InvalICache: trcval = VEX_TRC_JMP_INVALICACHE; break;
          case Ijk_NoRedir:     trcval = VEX_TRC_JMP_NOREDIR;     break;
          case Ijk_SigTRAP:     trcval = VEX_TRC_JMP_SIGTRAP;     break;
          case Ijk_SigSEGV:     trcval = VEX_TRC_JMP_SIGSEGV;     break;
index 9bae167107174eb985946e3f2aee6c0b1337864e..39d7941577914b6be10252e3194688fe09c477d5 100644 (file)
@@ -4729,7 +4729,7 @@ static void iselStmt ( ISelEnv* env, IRStmt* stmt )
          case Ijk_SigSEGV:
          case Ijk_SigTRAP:
          case Ijk_Sys_syscall:
-         case Ijk_TInval:
+         case Ijk_InvalICache:
          case Ijk_Yield:
          {
             HReg r = iselIntExpr_R(env, IRExpr_Const(stmt->Ist.Exit.dst));
@@ -4824,7 +4824,7 @@ static void iselNext ( ISelEnv* env,
       case Ijk_SigSEGV:
       case Ijk_SigTRAP:
       case Ijk_Sys_syscall:
-      case Ijk_TInval:
+      case Ijk_InvalICache:
       case Ijk_Yield: {
          HReg        r     = iselIntExpr_R(env, next);
          AMD64AMode* amRIP = AMD64AMode_IR(offsIP, hregAMD64_RBP());
index 51f35b3ca4589709e8f53b087f5c0230e64096c7..8aa27e62524820754bdd8e3d9b2798e538a4564c 100644 (file)
@@ -4461,7 +4461,7 @@ Int emit_ARM64Instr ( /*MB_MOD*/Bool* is_profInc,
             //case Ijk_EmWarn:      trcval = VEX_TRC_JMP_EMWARN;      break;
             //case Ijk_MapFail:     trcval = VEX_TRC_JMP_MAPFAIL;     break;
             case Ijk_NoDecode:    trcval = VEX_TRC_JMP_NODECODE;    break;
-            case Ijk_TInval:      trcval = VEX_TRC_JMP_TINVAL;      break;
+            case Ijk_InvalICache: trcval = VEX_TRC_JMP_INVALICACHE; break;
             case Ijk_FlushDCache: trcval = VEX_TRC_JMP_FLUSHDCACHE; break;
             case Ijk_NoRedir:     trcval = VEX_TRC_JMP_NOREDIR;     break;
             //case Ijk_SigTRAP:     trcval = VEX_TRC_JMP_SIGTRAP;     break;
index 8e9e4f556f7be969b69896b98833cd4976ffbb35..45641d92287a3dce01bb8f801cfbbbaa41942f9e 100644 (file)
@@ -6823,7 +6823,7 @@ static void iselStmt ( ISelEnv* env, IRStmt* stmt )
 //ZZ          case Ijk_NoDecode:
 //ZZ          case Ijk_NoRedir:
 //ZZ          case Ijk_Sys_syscall:
-//ZZ          case Ijk_TInval:
+//ZZ          case Ijk_InvalICache:
 //ZZ          case Ijk_Yield:
 //ZZ          {
 //ZZ             HReg r = iselIntExpr_R(env, IRExpr_Const(stmt->Ist.Exit.dst));
@@ -6915,7 +6915,7 @@ static void iselNext ( ISelEnv* env,
       case Ijk_NoDecode:
       case Ijk_NoRedir:
       case Ijk_Sys_syscall:
-      case Ijk_TInval:
+      case Ijk_InvalICache:
       case Ijk_FlushDCache:
 //ZZ       case Ijk_Yield:
       {
index d9bb974c0b7a0d13bb69e2102bd4c3e00a9abb3c..8ce938527039453cd1e01be7c1326dfa17b21ef9 100644 (file)
@@ -3335,7 +3335,7 @@ Int emit_ARMInstr ( /*MB_MOD*/Bool* is_profInc,
             //case Ijk_EmWarn:      trcval = VEX_TRC_JMP_EMWARN;      break;
             //case Ijk_MapFail:     trcval = VEX_TRC_JMP_MAPFAIL;     break;
             case Ijk_NoDecode:    trcval = VEX_TRC_JMP_NODECODE;    break;
-            case Ijk_TInval:      trcval = VEX_TRC_JMP_TINVAL;      break;
+            case Ijk_InvalICache: trcval = VEX_TRC_JMP_INVALICACHE; break;
             case Ijk_NoRedir:     trcval = VEX_TRC_JMP_NOREDIR;     break;
             //case Ijk_SigTRAP:     trcval = VEX_TRC_JMP_SIGTRAP;     break;
             //case Ijk_SigSEGV:     trcval = VEX_TRC_JMP_SIGSEGV;     break;
index 28568eb4eda86f7d28e4aac19b1afb1a82ffd4fe..c8be9e49e2bfdaf6f7c3260a162ee57b5686c0bd 100644 (file)
@@ -6193,7 +6193,7 @@ static void iselStmt ( ISelEnv* env, IRStmt* stmt )
          case Ijk_NoDecode:
          case Ijk_NoRedir:
          case Ijk_Sys_syscall:
-         case Ijk_TInval:
+         case Ijk_InvalICache:
          case Ijk_Yield:
          {
             HReg r = iselIntExpr_R(env, IRExpr_Const(stmt->Ist.Exit.dst));
@@ -6285,7 +6285,7 @@ static void iselNext ( ISelEnv* env,
       case Ijk_NoDecode:
       case Ijk_NoRedir:
       case Ijk_Sys_syscall:
-      case Ijk_TInval:
+      case Ijk_InvalICache:
       case Ijk_Yield:
       {
          HReg       r      = iselIntExpr_R(env, next);
index 2e34b99d2b4328b2a56ce6870b5fdbce91bce3ee..ca92f89f90fbd7f606ea943733153915ca19e5d8 100644 (file)
@@ -3465,7 +3465,7 @@ Int emit_MIPSInstr ( /*MB_MOD*/Bool* is_profInc,
             case Ijk_EmFail:        trcval = VEX_TRC_JMP_EMFAIL;        break;
             /* case Ijk_MapFail:   trcval = VEX_TRC_JMP_MAPFAIL;       break; */
             case Ijk_NoDecode:      trcval = VEX_TRC_JMP_NODECODE;      break;
-            case Ijk_TInval:        trcval = VEX_TRC_JMP_TINVAL;        break;
+            case Ijk_InvalICache:   trcval = VEX_TRC_JMP_INVALICACHE;   break;
             case Ijk_NoRedir:       trcval = VEX_TRC_JMP_NOREDIR;       break;
             case Ijk_SigILL:        trcval = VEX_TRC_JMP_SIGILL;        break;
             case Ijk_SigTRAP:       trcval = VEX_TRC_JMP_SIGTRAP;       break;
index 735386ccb20c141c7672688ec25d3ca03ef10938..572edf446216c054e7f95a2afe8a5a8fbfec8c9d 100644 (file)
@@ -4001,7 +4001,7 @@ static void iselStmt(ISelEnv * env, IRStmt * stmt)
          case Ijk_SigFPE_IntDiv:
          case Ijk_SigFPE_IntOvf:
          case Ijk_Sys_syscall:
-         case Ijk_TInval:
+         case Ijk_InvalICache:
          {
             HReg r = iselWordExpr_R(env, IRExpr_Const(stmt->Ist.Exit.dst));
             addInstr(env, MIPSInstr_XAssisted(r, amPC, cc,
@@ -4105,7 +4105,7 @@ static void iselNext ( ISelEnv* env,
       case Ijk_SigFPE_IntDiv:
       case Ijk_SigFPE_IntOvf:
       case Ijk_Sys_syscall:
-      case Ijk_TInval: {
+      case Ijk_InvalICache: {
          HReg      r     = iselWordExpr_R(env, next);
          MIPSAMode* amPC = MIPSAMode_IR(offsIP, GuestStatePointer(env->mode64));
          addInstr(env, MIPSInstr_XAssisted(r, amPC, MIPScc_AL, jk));
index 7439f0955863afaca6b9febb28280450a78eb02f..7c98aebaed53689d81967189e6e20a0439c84378 100644 (file)
@@ -4270,7 +4270,7 @@ Int emit_PPCInstr ( /*MB_MOD*/Bool* is_profInc,
          case Ijk_EmFail:      trcval = VEX_TRC_JMP_EMFAIL;      break;
          //case Ijk_MapFail:     trcval = VEX_TRC_JMP_MAPFAIL;     break;
          case Ijk_NoDecode:    trcval = VEX_TRC_JMP_NODECODE;    break;
-         case Ijk_TInval:      trcval = VEX_TRC_JMP_TINVAL;      break;
+         case Ijk_InvalICache: trcval = VEX_TRC_JMP_INVALICACHE; break;
          case Ijk_NoRedir:     trcval = VEX_TRC_JMP_NOREDIR;     break;
          case Ijk_SigTRAP:     trcval = VEX_TRC_JMP_SIGTRAP;     break;
          //case Ijk_SigSEGV:     trcval = VEX_TRC_JMP_SIGSEGV;     break;
index 724fee8825c6b56bf21d9412e6735159d97e39b9..6e1bfe6efba3266a77abaf26a1522232d9355abc 100644 (file)
@@ -5746,7 +5746,7 @@ static void iselStmt ( ISelEnv* env, IRStmt* stmt )
          case Ijk_SigBUS:
          case Ijk_SigTRAP:
          case Ijk_Sys_syscall:
-         case Ijk_TInval:
+         case Ijk_InvalICache:
          {
             HReg r = iselWordExpr_R(env, IRExpr_Const(stmt->Ist.Exit.dst));
             addInstr(env, PPCInstr_XAssisted(r, amCIA, cc,
@@ -5846,7 +5846,7 @@ static void iselNext ( ISelEnv* env,
       case Ijk_SigBUS:
       case Ijk_SigTRAP:
       case Ijk_Sys_syscall:
-      case Ijk_TInval:
+      case Ijk_InvalICache:
       {
          HReg      r     = iselWordExpr_R(env, next);
          PPCAMode* amCIA = PPCAMode_IR(offsIP, hregPPC_GPR31(env->mode64));
index a7e3928e67f4e9ce564cb8c3b40bd9e34a1ecc90..ba77250d724b7c782b5fcdae4e9ebea1c9925e2b 100644 (file)
@@ -6464,7 +6464,7 @@ s390_jump_kind_as_string(IRJumpKind kind)
    case Ijk_EmFail:      return "EmFail";
    case Ijk_NoDecode:    return "NoDecode";
    case Ijk_MapFail:     return "MapFail";
-   case Ijk_TInval:      return "Invalidate";
+   case Ijk_InvalICache: return "Invalidate";
    case Ijk_NoRedir:     return "NoRedir";
    case Ijk_SigTRAP:     return "SigTRAP";
    case Ijk_SigSEGV:     return "SigSEGV";
@@ -9783,7 +9783,7 @@ s390_insn_xassisted_emit(UChar *buf, const s390_insn *insn,
    case Ijk_EmFail:      trcval = VEX_TRC_JMP_EMFAIL;      break;
    case Ijk_MapFail:     trcval = VEX_TRC_JMP_MAPFAIL;     break;
    case Ijk_NoDecode:    trcval = VEX_TRC_JMP_NODECODE;    break;
-   case Ijk_TInval:      trcval = VEX_TRC_JMP_TINVAL;      break;
+   case Ijk_InvalICache: trcval = VEX_TRC_JMP_INVALICACHE; break;
    case Ijk_NoRedir:     trcval = VEX_TRC_JMP_NOREDIR;     break;
    case Ijk_SigTRAP:     trcval = VEX_TRC_JMP_SIGTRAP;     break;
    case Ijk_SigSEGV:     trcval = VEX_TRC_JMP_SIGSEGV;     break;
index 3662ffd31b9afe537edbb9297d0bac6b8df8546e..2e4df3ccc130c8f847d26e36e6578f088d91d160 100644 (file)
@@ -3936,7 +3936,7 @@ no_memcpy_put:
       case Ijk_EmFail:
       case Ijk_EmWarn:
       case Ijk_NoDecode:
-      case Ijk_TInval:
+      case Ijk_InvalICache:
       case Ijk_Sys_syscall:
       case Ijk_ClientReq:
       case Ijk_NoRedir:
@@ -4051,7 +4051,7 @@ iselNext(ISelEnv *env, IRExpr *next, IRJumpKind jk, Int offsIP)
    case Ijk_EmFail:
    case Ijk_EmWarn:
    case Ijk_NoDecode:
-   case Ijk_TInval:
+   case Ijk_InvalICache:
    case Ijk_Sys_syscall:
    case Ijk_ClientReq:
    case Ijk_NoRedir:
index 91aa03a2de3eb40552a37a8ffeea2298e757e0ee..8f5fcfe23e4e0f8867ca6b69c5d4592fa92ef8af 100644 (file)
@@ -2553,7 +2553,7 @@ Int emit_X86Instr ( /*MB_MOD*/Bool* is_profInc,
          case Ijk_EmWarn:       trcval = VEX_TRC_JMP_EMWARN;       break;
          case Ijk_MapFail:      trcval = VEX_TRC_JMP_MAPFAIL;      break;
          case Ijk_NoDecode:     trcval = VEX_TRC_JMP_NODECODE;     break;
-         case Ijk_TInval:       trcval = VEX_TRC_JMP_TINVAL;       break;
+         case Ijk_InvalICache:  trcval = VEX_TRC_JMP_INVALICACHE;  break;
          case Ijk_NoRedir:      trcval = VEX_TRC_JMP_NOREDIR;      break;
          case Ijk_SigTRAP:      trcval = VEX_TRC_JMP_SIGTRAP;      break;
          case Ijk_SigSEGV:      trcval = VEX_TRC_JMP_SIGSEGV;      break;
index 4147176a0a73257726fb3ac75a2f313f85cef7af..16152ba67b09a9af36bd26a6ea618230f717166e 100644 (file)
@@ -4287,7 +4287,7 @@ static void iselStmt ( ISelEnv* env, IRStmt* stmt )
          case Ijk_Sys_int130:
          case Ijk_Sys_syscall:
          case Ijk_Sys_sysenter:
-         case Ijk_TInval:
+         case Ijk_InvalICache:
          case Ijk_Yield:
          {
             HReg r = iselIntExpr_R(env, IRExpr_Const(stmt->Ist.Exit.dst));
@@ -4386,7 +4386,7 @@ static void iselNext ( ISelEnv* env,
       case Ijk_Sys_int130:
       case Ijk_Sys_syscall:
       case Ijk_Sys_sysenter:
-      case Ijk_TInval:
+      case Ijk_InvalICache:
       case Ijk_Yield:
       {
          HReg      r     = iselIntExpr_R(env, next);
index 8489d220abe3cff80e10d381246f8ec130b67dbc..fc3ef47bc938d3de468fb95c7ae8ed3642cd6cf0 100644 (file)
@@ -1412,7 +1412,7 @@ void ppIRJumpKind ( IRJumpKind kind )
       case Ijk_EmFail:        vex_printf("EmFail"); break;
       case Ijk_NoDecode:      vex_printf("NoDecode"); break;
       case Ijk_MapFail:       vex_printf("MapFail"); break;
-      case Ijk_TInval:        vex_printf("Invalidate"); break;
+      case Ijk_InvalICache:   vex_printf("InvalICache"); break;
       case Ijk_FlushDCache:   vex_printf("FlushDCache"); break;
       case Ijk_NoRedir:       vex_printf("NoRedir"); break;
       case Ijk_SigILL:        vex_printf("SigILL"); break;
index ebb8d41af9c8fd013809ae400a7e23dc1401f15b..495942ae76e94a756ca95588c6f684ff438a384c 100644 (file)
@@ -237,7 +237,7 @@ VexTranslateResult LibVEX_Translate ( VexTranslateArgs* vta )
    HInstrArray*    vcode;
    HInstrArray*    rcode;
    Int             i, j, k, out_used, guest_sizeB;
-   Int             offB_TISTART, offB_TILEN, offB_GUEST_IP, szB_GUEST_IP;
+   Int             offB_CMSTART, offB_CMLEN, offB_GUEST_IP, szB_GUEST_IP;
    Int             offB_HOST_EvC_COUNTER, offB_HOST_EvC_FAILADDR;
    UChar           insn_bytes[128];
    IRType          guest_word_type;
@@ -263,8 +263,8 @@ VexTranslateResult LibVEX_Translate ( VexTranslateArgs* vta )
    disInstrFn             = NULL;
    guest_word_type        = Ity_INVALID;
    host_word_type         = Ity_INVALID;
-   offB_TISTART           = 0;
-   offB_TILEN             = 0;
+   offB_CMSTART           = 0;
+   offB_CMLEN             = 0;
    offB_GUEST_IP          = 0;
    szB_GUEST_IP           = 0;
    offB_HOST_EvC_COUNTER  = 0;
@@ -507,16 +507,16 @@ VexTranslateResult LibVEX_Translate ( VexTranslateArgs* vta )
          guest_sizeB            = sizeof(VexGuestX86State);
          guest_word_type        = Ity_I32;
          guest_layout           = &x86guest_layout;
-         offB_TISTART           = offsetof(VexGuestX86State,guest_TISTART);
-         offB_TILEN             = offsetof(VexGuestX86State,guest_TILEN);
+         offB_CMSTART           = offsetof(VexGuestX86State,guest_CMSTART);
+         offB_CMLEN             = offsetof(VexGuestX86State,guest_CMLEN);
          offB_GUEST_IP          = offsetof(VexGuestX86State,guest_EIP);
          szB_GUEST_IP           = sizeof( ((VexGuestX86State*)0)->guest_EIP );
          offB_HOST_EvC_COUNTER  = offsetof(VexGuestX86State,host_EvC_COUNTER);
          offB_HOST_EvC_FAILADDR = offsetof(VexGuestX86State,host_EvC_FAILADDR);
          vassert(are_valid_hwcaps(VexArchX86, vta->archinfo_guest.hwcaps));
          vassert(0 == sizeof(VexGuestX86State) % 16);
-         vassert(sizeof( ((VexGuestX86State*)0)->guest_TISTART) == 4);
-         vassert(sizeof( ((VexGuestX86State*)0)->guest_TILEN  ) == 4);
+         vassert(sizeof( ((VexGuestX86State*)0)->guest_CMSTART) == 4);
+         vassert(sizeof( ((VexGuestX86State*)0)->guest_CMLEN  ) == 4);
          vassert(sizeof( ((VexGuestX86State*)0)->guest_NRADDR ) == 4);
          break;
 
@@ -527,16 +527,16 @@ VexTranslateResult LibVEX_Translate ( VexTranslateArgs* vta )
          guest_sizeB            = sizeof(VexGuestAMD64State);
          guest_word_type        = Ity_I64;
          guest_layout           = &amd64guest_layout;
-         offB_TISTART           = offsetof(VexGuestAMD64State,guest_TISTART);
-         offB_TILEN             = offsetof(VexGuestAMD64State,guest_TILEN);
+         offB_CMSTART           = offsetof(VexGuestAMD64State,guest_CMSTART);
+         offB_CMLEN             = offsetof(VexGuestAMD64State,guest_CMLEN);
          offB_GUEST_IP          = offsetof(VexGuestAMD64State,guest_RIP);
          szB_GUEST_IP           = sizeof( ((VexGuestAMD64State*)0)->guest_RIP );
          offB_HOST_EvC_COUNTER  = offsetof(VexGuestAMD64State,host_EvC_COUNTER);
          offB_HOST_EvC_FAILADDR = offsetof(VexGuestAMD64State,host_EvC_FAILADDR);
          vassert(are_valid_hwcaps(VexArchAMD64, vta->archinfo_guest.hwcaps));
          vassert(0 == sizeof(VexGuestAMD64State) % 16);
-         vassert(sizeof( ((VexGuestAMD64State*)0)->guest_TISTART ) == 8);
-         vassert(sizeof( ((VexGuestAMD64State*)0)->guest_TILEN   ) == 8);
+         vassert(sizeof( ((VexGuestAMD64State*)0)->guest_CMSTART ) == 8);
+         vassert(sizeof( ((VexGuestAMD64State*)0)->guest_CMLEN   ) == 8);
          vassert(sizeof( ((VexGuestAMD64State*)0)->guest_NRADDR  ) == 8);
          break;
 
@@ -547,16 +547,16 @@ VexTranslateResult LibVEX_Translate ( VexTranslateArgs* vta )
          guest_sizeB            = sizeof(VexGuestPPC32State);
          guest_word_type        = Ity_I32;
          guest_layout           = &ppc32Guest_layout;
-         offB_TISTART           = offsetof(VexGuestPPC32State,guest_TISTART);
-         offB_TILEN             = offsetof(VexGuestPPC32State,guest_TILEN);
+         offB_CMSTART           = offsetof(VexGuestPPC32State,guest_CMSTART);
+         offB_CMLEN             = offsetof(VexGuestPPC32State,guest_CMLEN);
          offB_GUEST_IP          = offsetof(VexGuestPPC32State,guest_CIA);
          szB_GUEST_IP           = sizeof( ((VexGuestPPC32State*)0)->guest_CIA );
          offB_HOST_EvC_COUNTER  = offsetof(VexGuestPPC32State,host_EvC_COUNTER);
          offB_HOST_EvC_FAILADDR = offsetof(VexGuestPPC32State,host_EvC_FAILADDR);
          vassert(are_valid_hwcaps(VexArchPPC32, vta->archinfo_guest.hwcaps));
          vassert(0 == sizeof(VexGuestPPC32State) % 16);
-         vassert(sizeof( ((VexGuestPPC32State*)0)->guest_TISTART ) == 4);
-         vassert(sizeof( ((VexGuestPPC32State*)0)->guest_TILEN   ) == 4);
+         vassert(sizeof( ((VexGuestPPC32State*)0)->guest_CMSTART ) == 4);
+         vassert(sizeof( ((VexGuestPPC32State*)0)->guest_CMLEN   ) == 4);
          vassert(sizeof( ((VexGuestPPC32State*)0)->guest_NRADDR  ) == 4);
          break;
 
@@ -567,16 +567,16 @@ VexTranslateResult LibVEX_Translate ( VexTranslateArgs* vta )
          guest_sizeB            = sizeof(VexGuestPPC64State);
          guest_word_type        = Ity_I64;
          guest_layout           = &ppc64Guest_layout;
-         offB_TISTART           = offsetof(VexGuestPPC64State,guest_TISTART);
-         offB_TILEN             = offsetof(VexGuestPPC64State,guest_TILEN);
+         offB_CMSTART           = offsetof(VexGuestPPC64State,guest_CMSTART);
+         offB_CMLEN             = offsetof(VexGuestPPC64State,guest_CMLEN);
          offB_GUEST_IP          = offsetof(VexGuestPPC64State,guest_CIA);
          szB_GUEST_IP           = sizeof( ((VexGuestPPC64State*)0)->guest_CIA );
          offB_HOST_EvC_COUNTER  = offsetof(VexGuestPPC64State,host_EvC_COUNTER);
          offB_HOST_EvC_FAILADDR = offsetof(VexGuestPPC64State,host_EvC_FAILADDR);
          vassert(are_valid_hwcaps(VexArchPPC64, vta->archinfo_guest.hwcaps));
          vassert(0 == sizeof(VexGuestPPC64State) % 16);
-         vassert(sizeof( ((VexGuestPPC64State*)0)->guest_TISTART    ) == 8);
-         vassert(sizeof( ((VexGuestPPC64State*)0)->guest_TILEN      ) == 8);
+         vassert(sizeof( ((VexGuestPPC64State*)0)->guest_CMSTART    ) == 8);
+         vassert(sizeof( ((VexGuestPPC64State*)0)->guest_CMLEN      ) == 8);
          vassert(sizeof( ((VexGuestPPC64State*)0)->guest_NRADDR     ) == 8);
          vassert(sizeof( ((VexGuestPPC64State*)0)->guest_NRADDR_GPR2) == 8);
          break;
@@ -588,16 +588,16 @@ VexTranslateResult LibVEX_Translate ( VexTranslateArgs* vta )
          guest_sizeB      = sizeof(VexGuestS390XState);
          guest_word_type  = Ity_I64;
          guest_layout     = &s390xGuest_layout;
-         offB_TISTART     = offsetof(VexGuestS390XState,guest_TISTART);
-         offB_TILEN       = offsetof(VexGuestS390XState,guest_TILEN);
+         offB_CMSTART     = offsetof(VexGuestS390XState,guest_CMSTART);
+         offB_CMLEN       = offsetof(VexGuestS390XState,guest_CMLEN);
          offB_GUEST_IP          = offsetof(VexGuestS390XState,guest_IA);
          szB_GUEST_IP           = sizeof( ((VexGuestS390XState*)0)->guest_IA);
          offB_HOST_EvC_COUNTER  = offsetof(VexGuestS390XState,host_EvC_COUNTER);
          offB_HOST_EvC_FAILADDR = offsetof(VexGuestS390XState,host_EvC_FAILADDR);
          vassert(are_valid_hwcaps(VexArchS390X, vta->archinfo_guest.hwcaps));
          vassert(0 == sizeof(VexGuestS390XState) % 16);
-         vassert(sizeof( ((VexGuestS390XState*)0)->guest_TISTART    ) == 8);
-         vassert(sizeof( ((VexGuestS390XState*)0)->guest_TILEN      ) == 8);
+         vassert(sizeof( ((VexGuestS390XState*)0)->guest_CMSTART    ) == 8);
+         vassert(sizeof( ((VexGuestS390XState*)0)->guest_CMLEN      ) == 8);
          vassert(sizeof( ((VexGuestS390XState*)0)->guest_NRADDR     ) == 8);
          break;
 
@@ -608,16 +608,16 @@ VexTranslateResult LibVEX_Translate ( VexTranslateArgs* vta )
          guest_sizeB            = sizeof(VexGuestARMState);
          guest_word_type        = Ity_I32;
          guest_layout           = &armGuest_layout;
-         offB_TISTART           = offsetof(VexGuestARMState,guest_TISTART);
-         offB_TILEN             = offsetof(VexGuestARMState,guest_TILEN);
+         offB_CMSTART           = offsetof(VexGuestARMState,guest_CMSTART);
+         offB_CMLEN             = offsetof(VexGuestARMState,guest_CMLEN);
          offB_GUEST_IP          = offsetof(VexGuestARMState,guest_R15T);
          szB_GUEST_IP           = sizeof( ((VexGuestARMState*)0)->guest_R15T );
          offB_HOST_EvC_COUNTER  = offsetof(VexGuestARMState,host_EvC_COUNTER);
          offB_HOST_EvC_FAILADDR = offsetof(VexGuestARMState,host_EvC_FAILADDR);
          vassert(are_valid_hwcaps(VexArchARM, vta->archinfo_guest.hwcaps));
          vassert(0 == sizeof(VexGuestARMState) % 16);
-         vassert(sizeof( ((VexGuestARMState*)0)->guest_TISTART) == 4);
-         vassert(sizeof( ((VexGuestARMState*)0)->guest_TILEN  ) == 4);
+         vassert(sizeof( ((VexGuestARMState*)0)->guest_CMSTART) == 4);
+         vassert(sizeof( ((VexGuestARMState*)0)->guest_CMLEN  ) == 4);
          vassert(sizeof( ((VexGuestARMState*)0)->guest_NRADDR ) == 4);
          break;
 
@@ -628,16 +628,16 @@ VexTranslateResult LibVEX_Translate ( VexTranslateArgs* vta )
          guest_sizeB          = sizeof(VexGuestARM64State);
          guest_word_type      = Ity_I64;
          guest_layout         = &arm64Guest_layout;
-         offB_TISTART         = offsetof(VexGuestARM64State,guest_TISTART);
-         offB_TILEN           = offsetof(VexGuestARM64State,guest_TILEN);
+         offB_CMSTART         = offsetof(VexGuestARM64State,guest_CMSTART);
+         offB_CMLEN           = offsetof(VexGuestARM64State,guest_CMLEN);
          offB_GUEST_IP        = offsetof(VexGuestARM64State,guest_PC);
          szB_GUEST_IP         = sizeof( ((VexGuestARM64State*)0)->guest_PC );
          offB_HOST_EvC_COUNTER  = offsetof(VexGuestARM64State,host_EvC_COUNTER);
          offB_HOST_EvC_FAILADDR = offsetof(VexGuestARM64State,host_EvC_FAILADDR);
          vassert(are_valid_hwcaps(VexArchARM64, vta->archinfo_guest.hwcaps));
          vassert(0 == sizeof(VexGuestARM64State) % 16);
-         vassert(sizeof( ((VexGuestARM64State*)0)->guest_TISTART) == 8);
-         vassert(sizeof( ((VexGuestARM64State*)0)->guest_TILEN  ) == 8);
+         vassert(sizeof( ((VexGuestARM64State*)0)->guest_CMSTART) == 8);
+         vassert(sizeof( ((VexGuestARM64State*)0)->guest_CMLEN  ) == 8);
          vassert(sizeof( ((VexGuestARM64State*)0)->guest_NRADDR ) == 8);
          break;
 
@@ -648,16 +648,16 @@ VexTranslateResult LibVEX_Translate ( VexTranslateArgs* vta )
          guest_sizeB            = sizeof(VexGuestMIPS32State);
          guest_word_type        = Ity_I32;
          guest_layout           = &mips32Guest_layout;
-         offB_TISTART           = offsetof(VexGuestMIPS32State,guest_TISTART);
-         offB_TILEN             = offsetof(VexGuestMIPS32State,guest_TILEN);
+         offB_CMSTART           = offsetof(VexGuestMIPS32State,guest_CMSTART);
+         offB_CMLEN             = offsetof(VexGuestMIPS32State,guest_CMLEN);
          offB_GUEST_IP          = offsetof(VexGuestMIPS32State,guest_PC);
          szB_GUEST_IP           = sizeof( ((VexGuestMIPS32State*)0)->guest_PC );
          offB_HOST_EvC_COUNTER  = offsetof(VexGuestMIPS32State,host_EvC_COUNTER);
          offB_HOST_EvC_FAILADDR = offsetof(VexGuestMIPS32State,host_EvC_FAILADDR);
          vassert(are_valid_hwcaps(VexArchMIPS32, vta->archinfo_guest.hwcaps));
          vassert(0 == sizeof(VexGuestMIPS32State) % 16);
-         vassert(sizeof( ((VexGuestMIPS32State*)0)->guest_TISTART) == 4);
-         vassert(sizeof( ((VexGuestMIPS32State*)0)->guest_TILEN  ) == 4);
+         vassert(sizeof( ((VexGuestMIPS32State*)0)->guest_CMSTART) == 4);
+         vassert(sizeof( ((VexGuestMIPS32State*)0)->guest_CMLEN  ) == 4);
          vassert(sizeof( ((VexGuestMIPS32State*)0)->guest_NRADDR ) == 4);
          break;
 
@@ -668,16 +668,16 @@ VexTranslateResult LibVEX_Translate ( VexTranslateArgs* vta )
          guest_sizeB            = sizeof(VexGuestMIPS64State);
          guest_word_type        = Ity_I64;
          guest_layout           = &mips64Guest_layout;
-         offB_TISTART           = offsetof(VexGuestMIPS64State,guest_TISTART);
-         offB_TILEN             = offsetof(VexGuestMIPS64State,guest_TILEN);
+         offB_CMSTART           = offsetof(VexGuestMIPS64State,guest_CMSTART);
+         offB_CMLEN             = offsetof(VexGuestMIPS64State,guest_CMLEN);
          offB_GUEST_IP          = offsetof(VexGuestMIPS64State,guest_PC);
          szB_GUEST_IP           = sizeof( ((VexGuestMIPS64State*)0)->guest_PC );
          offB_HOST_EvC_COUNTER  = offsetof(VexGuestMIPS64State,host_EvC_COUNTER);
          offB_HOST_EvC_FAILADDR = offsetof(VexGuestMIPS64State,host_EvC_FAILADDR);
          vassert(are_valid_hwcaps(VexArchMIPS64, vta->archinfo_guest.hwcaps));
          vassert(0 == sizeof(VexGuestMIPS64State) % 16);
-         vassert(sizeof( ((VexGuestMIPS64State*)0)->guest_TISTART) == 8);
-         vassert(sizeof( ((VexGuestMIPS64State*)0)->guest_TILEN  ) == 8);
+         vassert(sizeof( ((VexGuestMIPS64State*)0)->guest_CMSTART) == 8);
+         vassert(sizeof( ((VexGuestMIPS64State*)0)->guest_CMLEN  ) == 8);
          vassert(sizeof( ((VexGuestMIPS64State*)0)->guest_NRADDR ) == 8);
          break;
 
@@ -723,8 +723,8 @@ VexTranslateResult LibVEX_Translate ( VexTranslateArgs* vta )
                      guest_word_type,
                      vta->needs_self_check,
                      vta->preamble_function,
-                     offB_TISTART,
-                     offB_TILEN,
+                     offB_CMSTART,
+                     offB_CMLEN,
                      offB_GUEST_IP,
                      szB_GUEST_IP );
 
index 6da52ac864834c2c146dbdd2619aae07682ddbdf..cf8517370b2576b74e3f6e0140a375068c7f1165 100644 (file)
@@ -932,11 +932,15 @@ extern void LibVEX_InitIRI ( const IRICB * );
 
    ALL GUEST ARCHITECTURES
    ~~~~~~~~~~~~~~~~~~~~~~~
-   The guest state must contain two pseudo-registers, guest_TISTART
-   and guest_TILEN.  These are used to pass the address of areas of
-   guest code, translations of which are to be invalidated, back to
-   the despatcher.  Both pseudo-regs must have size equal to the guest
-   word size.
+   The guest state must contain two pseudo-registers, guest_CMSTART
+   and guest_CMLEN.  These are used to specify guest address ranges,
+   either of code to be invalidated, when used in conjunction with
+   Ijk_InvalICache, or of d-cache ranges to be flushed, when used in
+   conjunction with Ijk_FlushDCache.  In such cases, the two _CM
+   pseudo-regs should be filled in by the IR, and then an exit with
+   one of the two abovementioned Ijk_ kinds should happen, so that the
+   dispatcher can action them.  Both pseudo-regs must have size equal
+   to the guest word size.
 
    The architecture must a third pseudo-register, guest_NRADDR, also
    guest-word-sized.  This is used to record the unredirected guest
index 964f11c8419d4732ca3e9dc7ad4c52483804bc60..5920672bf6cf37f42bc86fb33890a8ff7abefffa 100644 (file)
@@ -138,8 +138,8 @@ typedef
          compilation breakage.  On amd64, these two fields are set to
          zero by LibVEX_GuestAMD64_initialise and then should be
          ignored forever thereafter. */
-      ULong guest_TISTART;
-      ULong guest_TILEN;
+      ULong guest_CMSTART;
+      ULong guest_CMLEN;
 
       /* Used to record the unredirected guest address at the start of
          a translation whose start has been redirected.  By reading
index b7fcea7be85591d2092a97271f7f64501515d6cc..ae77b17535e7f1276424337eae52129798d3397c 100644 (file)
@@ -94,9 +94,9 @@ typedef
       /* Emulation notes */
       UInt guest_EMNOTE;
 
-      /* For clflush: record start and length of area to invalidate */
-      UInt guest_TISTART;
-      UInt guest_TILEN;
+      /* For clinval/clflush: record start and length of area */
+      UInt guest_CMSTART;
+      UInt guest_CMLEN;
 
       /* Used to record the unredirected guest address at the start of
          a translation whose start has been redirected.  By reading
index 81cac6472cd5ec2caaa70d9b759760be0f0d2229..1253c59fad02f3085f51cb4e27aaa60a34a443b6 100644 (file)
@@ -127,9 +127,9 @@ typedef
       /* Emulation notes */
       UInt guest_EMNOTE;
 
-      /* For clflush: record start and length of area to invalidate */
-      ULong guest_TISTART;
-      ULong guest_TILEN;
+      /* For clflush/clinval: record start and length of area */
+      ULong guest_CMSTART;
+      ULong guest_CMLEN;
 
       /* Used to record the unredirected guest address at the start of
          a translation whose start has been redirected.  By reading
index 65318fe7e7c65363b52be36b47ebec689643f9da..99b9dbb2ebe1dcd6eabe7ed65d81f476a8434852 100644 (file)
@@ -132,8 +132,8 @@ typedef
       /* 424 */ UInt guest_EMNOTE;
 
       /* For clflush: record start and length of area to invalidate */
-      /* 428 */ UInt guest_TISTART;
-      /* 432 */ UInt guest_TILEN;
+      /* 428 */ UInt guest_CMSTART;
+      /* 432 */ UInt guest_CMLEN;
       /* 436 */ UInt guest_NRADDR;
 
       /* 440 */ UInt host_EvC_FAILADDR;
index bbf43854dc591160bde016f2c7ec7ff3659ca26e..70073b603def55366e80a55621dcbb42928fcce8 100644 (file)
@@ -137,8 +137,8 @@ typedef
         UInt guest_EMNOTE;       /* 568 */
 
       /* For clflush: record start and length of area to invalidate */
-        ULong guest_TISTART;     /* 576 */
-        ULong guest_TILEN;       /* 584 */
+        ULong guest_CMSTART;     /* 576 */
+        ULong guest_CMLEN;       /* 584 */
 
         ULong guest_NRADDR;      /* 592 */
 
index 66789be3c9604e785bf56d026d3c8d1585277f97..5acfcd730788dea19d55393a63841190b2b90dfb 100644 (file)
@@ -210,8 +210,8 @@ typedef
       /* 1196 */ UInt guest_EMNOTE;
 
       /* For icbi: record start and length of area to invalidate */
-      /* 1200 */ UInt guest_TISTART;
-      /* 1204 */ UInt guest_TILEN;
+      /* 1200 */ UInt guest_CMSTART;
+      /* 1204 */ UInt guest_CMLEN;
 
       /* Used to record the unredirected guest address at the start of
          a translation whose start has been redirected.  By reading
index 4773880ab0659adb3bd85c5140bb4091903c48df..3903ce745bbd46248850fd945da0f529bf8ab345 100644 (file)
@@ -252,8 +252,8 @@ typedef
       /* 1340 */ UInt  padding;
 
       /* For icbi: record start and length of area to invalidate */
-      /* 1344 */ ULong guest_TISTART;
-      /* 1352 */ ULong guest_TILEN;
+      /* 1344 */ ULong guest_CMSTART;
+      /* 1352 */ ULong guest_CMLEN;
 
       /* Used to record the unredirected guest address at the start of
          a translation whose start has been redirected.  By reading
index c074e921d775a050d391dce10537aa087032bc9e..a163b7f9335577617e6640740f7b046ec3ff71fb 100644 (file)
@@ -132,8 +132,8 @@ typedef struct {
 
    /* See comments at bottom of libvex.h */
    /*  384 */  ULong guest_NRADDR;
-   /*  392 */  ULong guest_TISTART;
-   /*  400 */  ULong guest_TILEN;
+   /*  392 */  ULong guest_CMSTART;
+   /*  400 */  ULong guest_CMLEN;
 
    /* Used when backing up to restart a syscall that has
       been interrupted by a signal. See also comment in
index 597143f90deb77cba40a58040fa49354dd1d3298..ac780ac652120a79b0946315201a63ca3cde3091 100644 (file)
@@ -199,9 +199,9 @@ typedef
       /* Emulation notes */
       UInt   guest_EMNOTE;
 
-      /* For clflush: record start and length of area to invalidate */
-      UInt guest_TISTART;
-      UInt guest_TILEN;
+      /* For clflush/clinval: record start and length of area */
+      UInt guest_CMSTART;
+      UInt guest_CMLEN;
 
       /* Used to record the unredirected guest address at the start of
          a translation whose start has been redirected.  By reading
index d590802441714ed6e1906d4aa39530b4f4dc801c..7bc68c8b09a893d5d9d8727a6e86831603c0865c 100644 (file)
@@ -2075,16 +2075,17 @@ extern Bool eqIRAtom ( IRExpr*, IRExpr* );
 /* This describes hints which can be passed to the dispatcher at guest
    control-flow transfer points.
 
-   Re Ijk_TInval: the guest state _must_ have two pseudo-registers,
-   guest_TISTART and guest_TILEN, which specify the start and length
-   of the region to be invalidated.  These are both the size of a
-   guest word.  It is the responsibility of the relevant toIR.c to
-   ensure that these are filled in with suitable values before issuing
-   a jump of kind Ijk_TInval.
-
-   Ijk_TInval requests invalidation of translations taken from the
-   requested range.  Ijk_FlushDCache requests flushing of the D cache
-   for the specified range.
+   Re Ijk_InvalICache and Ijk_FlushDCache: the guest state _must_ have
+   two pseudo-registers, guest_CMSTART and guest_CMLEN, which specify
+   the start and length of the region to be invalidated.  CM stands
+   for "Cache Management".  These are both the size of a guest word.
+   It is the responsibility of the relevant toIR.c to ensure that
+   these are filled in with suitable values before issuing a jump of
+   kind Ijk_InvalICache or Ijk_FlushDCache.
+
+   Ijk_InvalICache requests invalidation of translations taken from
+   the requested range.  Ijk_FlushDCache requests flushing of the D
+   cache for the specified range.
 
    Re Ijk_EmWarn and Ijk_EmFail: the guest state must have a
    pseudo-register guest_EMNOTE, which is 32-bits regardless of the
@@ -2113,8 +2114,8 @@ typedef
       Ijk_EmFail,         /* emulation critical (FATAL) error; give up */
       Ijk_NoDecode,       /* current instruction cannot be decoded */
       Ijk_MapFail,        /* Vex-provided address translation failed */
-      Ijk_TInval,         /* Inval icache to PoU in [TISTART, +TILEN) */
-      Ijk_FlushDCache,    /* Clean dcache to PoU in [TISTART, +TILEN) */
+      Ijk_InvalICache,    /* Inval icache for range [CMSTART, +CMLEN) */
+      Ijk_FlushDCache,    /* Flush dcache for range [CMSTART, +CMLEN) */
       Ijk_NoRedir,        /* Jump to un-redirected guest addr */
       Ijk_SigILL,         /* current instruction synths SIGILL */
       Ijk_SigTRAP,        /* current instruction synths SIGTRAP */
index 5738ec1b4b411b5582d8fd75938a584e7c47ec9b..82090424facb8cd32e35d6ad66331b02276f039c 100644 (file)
@@ -48,8 +48,8 @@
    with Valgrind's VG_TRC_ values, which are 60 or below.
 */
 
-#define VEX_TRC_JMP_TINVAL     61  /* invalidate translations before
-                                      continuing */
+#define VEX_TRC_JMP_INVALICACHE 61  /* invalidate icache (translations)
+                                       before continuing */
 #define VEX_TRC_JMP_FLUSHDCACHE 103 /* flush dcache before continuing */
 
 #define VEX_TRC_JMP_NOREDIR    81  /* jump to undirected guest addr */