This is the mail archive of the sid@sources.redhat.com mailing list for the SID project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Access methods for CacheCfg


I've committed the attached patch which adds two access methods to the CacheCfg class.

Dave

Index: sid/main/dynamic/commonCfg.h
===================================================================
RCS file: /cvs/src/src/sid/main/dynamic/commonCfg.h,v
retrieving revision 1.4
diff -c -p -r1.4 commonCfg.h
*** sid/main/dynamic/commonCfg.h	22 Mar 2004 21:28:55 -0000	1.4
--- sid/main/dynamic/commonCfg.h	1 Apr 2004 23:31:58 -0000
*************** public:
*** 60,65 ****
--- 60,67 ----
    void set_size (sid::host_int_4 sz);
    void set_line_size (sid::host_int_4 sz);
    void set_way (sid::host_int_4 sz);
+   sid::host_int_4 get_size () const { return my_size; }
+   sid::host_int_4 get_line_size () const {return my_line_size; }
   protected:
    void compute_comptype ();
    string my_assoc;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]