]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Rename ppc_cache_line_szB to indicate that this is the size
authorFlorian Krohm <florian@eich-krohm.de>
Sat, 3 Aug 2013 19:36:55 +0000 (19:36 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Sat, 3 Aug 2013 19:36:55 +0000 (19:36 +0000)
of the instruction cache.

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

VEX/priv/guest_ppc_toIR.c
VEX/priv/main_main.c
VEX/pub/libvex.h
VEX/switchback/switchback.c
VEX/test_main.c

index f420bb5acf6dc0a9bcbc1ff004a563a7822fb0c4..fd9ac5b84fb10f090718c661520f6474e92abc38 100644 (file)
@@ -6654,7 +6654,7 @@ static Bool dis_cache_manage ( UInt         theInstr,
    UChar rB_addr = ifieldRegB(theInstr);
    UInt  opc2    = ifieldOPClo10(theInstr);
    UChar b0      = ifieldBIT0(theInstr);
-   UInt  lineszB = guest_archinfo->ppc_cache_line_szB;
+   UInt  lineszB = guest_archinfo->ppc_icache_line_szB;
    Bool  is_dcbzl = False;
 
    IRType ty     = mode64 ? Ity_I64 : Ity_I32;
index 05ca8fa7061abe67d4f4a39ab8b69cc4cc7031d8..6297a5de984056e2b1c139ef8d37ae28371d0a90 100644 (file)
@@ -1171,10 +1171,10 @@ const HChar* LibVEX_ppVexHwCaps ( VexArch arch, UInt hwcaps )
 /* Write default settings info *vai. */
 void LibVEX_default_VexArchInfo ( /*OUT*/VexArchInfo* vai )
 {
-   vai->hwcaps             = 0;
-   vai->ppc_cache_line_szB = 0;
-   vai->ppc_dcbz_szB       = 0;
-   vai->ppc_dcbzl_szB      = 0;
+   vai->hwcaps              = 0;
+   vai->ppc_icache_line_szB = 0;
+   vai->ppc_dcbz_szB        = 0;
+   vai->ppc_dcbzl_szB       = 0;
 
    vai->hwcache_info.num_levels = 0;
    vai->hwcache_info.num_caches = 0;
index f29e41c1c911b403bd049d41b28cbc6ebd5e6202..3830b710bd7419935cf088e90adce785570ee341 100644 (file)
@@ -245,8 +245,8 @@ typedef
       /* The following two fields are mandatory. */
       UInt hwcaps;
       VexCacheInfo hwcache_info;
-      /* PPC32/PPC64 only: size of cache line */
-      Int ppc_cache_line_szB;
+      /* PPC32/PPC64 only: size of instruction cache line */
+      Int ppc_icache_line_szB;
       /* PPC32/PPC64 only: sizes zeroed by the dcbz/dcbzl instructions
        * (bug#135264) */
       UInt ppc_dcbz_szB;
index 990c7d3e088e7fad4a562114382da4eb1c9b4254..ce577fa39ecdb9077bae8d5fe4252ac8acff75f4 100644 (file)
@@ -846,7 +846,7 @@ void make_translation ( Addr64 guest_addr, Bool verbose )
 
    LibVEX_default_VexArchInfo(&vex_archinfo);
    vex_archinfo.subarch = VexSubArch;
-   vex_archinfo.ppc_cache_line_szB = CacheLineSize;
+   vex_archinfo.ppc_icache_line_szB = CacheLineSize;
 
    /* */
    vta.arch_guest       = VexArch;
index 58929817f72d77fd84e5304e64fef7a7f43eedfa..5ddd5f4268e3477bc3452a879d365831e502daf1 100644 (file)
@@ -178,7 +178,7 @@ int main ( int argc, char** argv )
 
       LibVEX_default_VexArchInfo(&vai_ppc32);
       vai_ppc32.hwcaps = 0;
-      vai_ppc32.ppc_cache_line_szB = 128;
+      vai_ppc32.ppc_icache_line_szB = 128;
 
       LibVEX_default_VexArchInfo(&vai_arm);
       vai_arm.hwcaps = VEX_HWCAPS_ARM_VFP3 | VEX_HWCAPS_ARM_NEON | 7;