This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
[RFA] New methods for cgen-cpu.h
- To: sid at sources dot redhat dot com
- Subject: [RFA] New methods for cgen-cpu.h
- From: Ben Elliston <bje at redhat dot com>
- Date: Tue, 3 Apr 2001 13:43:52 +1000 (EST)
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);
}