public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
* [RFA] New methods for cgen-cpu.h
@ 2001-04-02 20:44 Ben Elliston
  2001-04-02 23:08 ` matthew green
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Elliston @ 2001-04-02 20:44 UTC (permalink / raw)
  To: sid

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);
     }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* re: [RFA] New methods for cgen-cpu.h
  2001-04-02 20:44 [RFA] New methods for cgen-cpu.h Ben Elliston
@ 2001-04-02 23:08 ` matthew green
  0 siblings, 0 replies; 2+ messages in thread
From: matthew green @ 2001-04-02 23:08 UTC (permalink / raw)
  To: Ben Elliston; +Cc: sid

   
   Okay to commit?


sounds fine to me.  this isn't the first, or even second or
third time this has happened.  maybe we need some generator
in here to produce the all the combintions?


.mrg.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-02 23:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-02 20:44 [RFA] New methods for cgen-cpu.h Ben Elliston
2001-04-02 23:08 ` matthew green

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).