This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
[patch] Access methods for CacheCfg
- From: Dave Brolley <brolley at redhat dot com>
- To: sid at sources dot redhat dot com
- Date: Thu, 01 Apr 2004 18:37:14 -0500
- Subject: [patch] Access methods for CacheCfg
- Organization: Red Hat Canada, Ltd
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;