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]

[RFA] New methods for cgen-cpu.h


The following patch fills in some gaps in cgen_bi_endian_cpu's public
interface.  I could have changed my cgen description to use modes such
as QI instead of UQI, etc., but since it's permissible in the
description, the generated code should also be usable.

Okay to commit?


2001-04-03  Ben Elliston  <bje@redhat.com>

	* cgen-cpu.h (cgen_bi_endian_cpu::GETMEMUQI): New method.
	(cgen_bi_endian_cpu::SETMEMUQI): Ditto.
	(cgen_bi_endian_cpu::GETMEMUHI): Ditto.
	(cgen_bi_endain_cpu::SETMEMUHI): Ditto.

Index: cgen-cpu.h
===================================================================
RCS file: /cvs/src/src/sid/component/cgen-cpu/cgen-cpu.h,v
retrieving revision 1.1
diff -u -r1.1 cgen-cpu.h
--- cgen-cpu.h	2000/12/07 19:30:47	1.1
+++ cgen-cpu.h	2001/04/03 03:39:56
@@ -70,18 +70,38 @@
     {
       return this->read_data_memory_1 (pc, addr);
     }
+  inline UQI
+  GETMEMUQI(PCADDR pc, ADDR addr) const
+    {
+      return this->read_data_memory_1 (pc, addr);
+    }
   inline void
   SETMEMQI(PCADDR pc, ADDR addr, QI value) const
     {
       return this->write_data_memory_1 (pc, addr, value);
     }
+  inline void
+  SETMEMUQI(PCADDR pc, ADDR addr, UQI value) const
+    {
+      return this->write_data_memory_1 (pc, addr, value);
+    }
   inline HI
   GETMEMHI(PCADDR pc, ADDR addr) const
     {
       return this->read_data_memory_2 (pc, addr);
     }
+  inline UHI
+  GETMEMUHI(PCADDR pc, ADDR addr) const
+    {
+      return this->read_data_memory_2 (pc, addr);
+    }
   inline void
   SETMEMHI(PCADDR pc, ADDR addr, HI value) const
+    {
+      return this->write_data_memory_2 (pc, addr, value);
+    }
+  inline void
+  SETMEMUHI(PCADDR pc, ADDR addr, UHI value) const
     {
       return this->write_data_memory_2 (pc, addr, value);
     }


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