]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Convert some native types to our types.
authorNicholas Nethercote <njn@valgrind.org>
Mon, 10 Oct 2005 16:49:01 +0000 (16:49 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Mon, 10 Oct 2005 16:49:01 +0000 (16:49 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4899

cachegrind/cg_main.c
cachegrind/cg_sim.c

index 40940e31715f532c8d2c0809bc557125e4c9c66e..d98c7e3e21c44a8a6d5b184a382e9866fd082623 100644 (file)
@@ -192,8 +192,8 @@ static void get_debug_info(Addr instr_addr, Char file[FILE_LEN],
 
 static UInt hash(Char *s, UInt table_size)
 {
-   const int hash_constant = 256;
-   int hash_value = 0;
+   const Int hash_constant = 256;
+   Int hash_value = 0;
    for ( ; *s; s++)
       hash_value = (hash_constant * hash_value + *s) % table_size;
    return hash_value;
@@ -963,7 +963,7 @@ static UInt ULong_width(ULong n)
 
 static void cg_fini(Int exitcode)
 {
-   static char buf1[128], buf2[128], buf3[128], fmt [128];
+   static Char buf1[128], buf2[128], buf3[128], fmt [128];
 
    CC D_total;
    ULong L2_total_m, L2_total_mr, L2_total_mw,
@@ -1053,7 +1053,7 @@ static void cg_fini(Int exitcode)
 
    // Various stats
    if (VG_(clo_verbosity) > 1) {
-       int BB_lookups = full_debug_BBs      + fn_debug_BBs +
+       Int BB_lookups = full_debug_BBs      + fn_debug_BBs +
                         file_line_debug_BBs + no_debug_BBs;
       
        VG_(message)(Vg_DebugMsg, "");
@@ -1100,9 +1100,9 @@ static void cg_discard_basic_block_info ( Addr a, SizeT size )
 /*--- Command line processing                                      ---*/
 /*--------------------------------------------------------------------*/
 
-static void parse_cache_opt ( cache_t* cache, char* opt )
+static void parse_cache_opt ( cache_t* cache, Char* opt )
 {
-   int   i = 0, i2, i3;
+   Int i = 0, i2, i3;
 
    // Option argument looks like "65536,2,64".
    // Find commas, replace with NULs to make three independent 
index a5c65df82419b44b516d73d281d974299a2d53fe..7cab553cb2f5500785b20a4af570835be73141e5 100644 (file)
 */
 
 typedef struct {
-   int          size;                   /* bytes */
-   int          assoc;
-   int          line_size;              /* bytes */
-   int          sets;
-   int          sets_min_1;
-   int          assoc_bits;
-   int          line_size_bits;
-   int          tag_shift;
-   char         desc_line[128];
+   Int          size;                   /* bytes */
+   Int          assoc;
+   Int          line_size;              /* bytes */
+   Int          sets;
+   Int          sets_min_1;
+   Int          assoc_bits;
+   Int          line_size_bits;
+   Int          tag_shift;
+   Char         desc_line[128];
    UWord*       tags;
 } cache_t2;
 
 /* By this point, the size/assoc/line_size has been checked. */
 static void cachesim_initcache(cache_t config, cache_t2* c)
 {
-   int i;
+   Int i;
 
    c->size      = config.size;
    c->assoc     = config.assoc;
@@ -114,7 +114,7 @@ void cachesim_##L##_doref(Addr a, UChar size, ULong* m1, ULong *m2)         \
    register UInt  set1 = ( a         >> L.line_size_bits) & (L.sets_min_1); \
    register UInt  set2 = ((a+size-1) >> L.line_size_bits) & (L.sets_min_1); \
    register UWord tag  = a >> L.tag_shift;                                  \
-   int i, j;                                                                \
+   Int i, j;                                                                \
    Bool is_miss = False;                                                    \
    UWord* set;                                                              \
                                                                             \