From: Frank Ch. Eigler Date: Thu, 9 Apr 1998 20:56:00 +0000 (+0000) Subject: * Backed out week-old attempt at enabling quadword memory access on X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0b39eb2de25862b18d574bca791e39c3643c231;p=binutils-gdb.git * Backed out week-old attempt at enabling quadword memory access on MIPS sim; added PKE sim code fixes. No COP2 testing progress today. [ChangeLog] Thu Apr 9 16:38:23 1998 Frank Ch. Eigler * r5900.igen (LQC,SQC): Adapted code to DOUBLEWORD accesses instead of QUADWORD. * sim-main.h: Removed attempt at allowing 128-bit access. [ChangeLog.sky] Thu Apr 9 16:42:54 1998 Frank Ch. Eigler * sky-pke.c (read_pke_pc): Corrected PKE PC calculation to word granularity. --- diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog index 8f13e68ef95..ab70c7e5b89 100644 --- a/sim/mips/ChangeLog +++ b/sim/mips/ChangeLog @@ -1,3 +1,12 @@ +start-sanitize-sky +Thu Apr 9 16:38:23 1998 Frank Ch. Eigler + + * r5900.igen (LQC,SQC): Adapted code to DOUBLEWORD accesses + instead of QUADWORD. + + * sim-main.h: Removed attempt at allowing 128-bit access. + +end-sanitize-sky start-sanitize-sky Wed Apr 8 18:12:13 1998 Frank Ch. Eigler diff --git a/sim/mips/sim-main.h b/sim/mips/sim-main.h index 776e0b3d80d..af9378a0961 100644 --- a/sim/mips/sim-main.h +++ b/sim/mips/sim-main.h @@ -837,18 +837,6 @@ decode_coproc (SD, CPU, cia, (instruction)) #define PSIZE (WITH_TARGET_ADDRESS_BITSIZE) #endif -/* start-sanitize-sky */ -#ifdef OOPS_THIS_DOESN_T_WORK -#ifdef TARGET_SKY - /* 128-bit accesses are allowed */ -#undef LOADDRMASK -#define LOADDRMASK AccessLength_QUADWORD -#undef PSIZE -#define PSIZE (WITH_TARGET_ADDRESS_BITSIZE) -#endif /* TARGET_SKY */ -#endif -/* end-sanitize-sky */ - INLINE_SIM_MAIN (int) address_translation PARAMS ((SIM_DESC sd, sim_cpu *, address_word cia, address_word vAddr, int IorD, int LorS, address_word *pAddr, int *CCA, int raw)); #define AddressTranslation(vAddr,IorD,LorS,pAddr,CCA,host,raw) \ diff --git a/sim/mips/sky-pke.c b/sim/mips/sky-pke.c index ce5c478a595..6e318750eaa 100644 --- a/sim/mips/sky-pke.c +++ b/sim/mips/sky-pke.c @@ -197,14 +197,16 @@ pke_attach(SIM_DESC sd, struct pke_device* me) } } + /* Read PKE Pseudo-PC into buf in target order */ int read_pke_pc (struct pke_device *me, void *buf) { - *((int *) buf) = H2T_4( me->fifo_pc ); + *((int *) buf) = H2T_4( (me->fifo_pc << 2) | me->qw_pc ); return 4; } + /* Read PKE reg into buf in target order */ int read_pke_reg (struct pke_device *me, int reg_num, void *buf) @@ -415,6 +417,8 @@ write_pke_reg (struct pke_device *me, int reg_num, const void *buf) return 4; } + + /* Handle a PKE write; return no. of bytes written */ int