[patch] Access methods for CacheCfg

Dave Brolley <[email protected]>
Newsgroups gmane.comp.emulators.sid.devel
Organization Red Hat Canada, Ltd
Message-ID <[email protected]>
I've committed the attached patch which adds two access methods to the 
CacheCfg class.

Dave
sid-cachecfg.patch.txt (text/plain, 702 B)
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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.