public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: Ben Elliston <bje@redhat.com>
To: sid@sources.redhat.com
Subject: [RFA] New methods for cgen-cpu.h
Date: Mon, 02 Apr 2001 20:44:00 -0000	[thread overview]
Message-ID: <15049.18168.582024.689523@scooby.apac.redhat.com> (raw)

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

             reply	other threads:[~2001-04-02 20:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-02 20:44 Ben Elliston [this message]
2001-04-02 23:08 ` matthew green

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15049.18168.582024.689523@scooby.apac.redhat.com \
    --to=bje@redhat.com \
    --cc=sid@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).