From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Elliston To: sid@sources.redhat.com Subject: [RFA] New methods for cgen-cpu.h Date: Mon, 02 Apr 2001 20:44:00 -0000 Message-id: <15049.18168.582024.689523@scooby.apac.redhat.com> X-SW-Source: 2001-q2/msg00002.html 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 * 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); }