From: Ian Carmichael Date: Thu, 22 Jan 1998 20:48:22 +0000 (+0000) Subject: * Incorporate GPR_SET() macro from mips/sim-main.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34cf4e9aa6216b34ccdc2c0319557555f5743f23;p=binutils-gdb.git * Incorporate GPR_SET() macro from mips/sim-main.h --- diff --git a/sim/txvu/sim-main.h b/sim/txvu/sim-main.h index aa0928a58f4..b41af56ede7 100644 --- a/sim/txvu/sim-main.h +++ b/sim/txvu/sim-main.h @@ -376,6 +376,7 @@ struct _sim_cpu { #define REGISTERS ((STATE_CPU (sd,0))->registers) #define GPR (®ISTERS[0]) +#define GPR_SET(N,VAL) (REGISTERS[(N)] = (VAL)) #define FGRIDX (38) #define FGR (®ISTERS[FGRIDX]) #define LO (REGISTERS[33]) @@ -431,8 +432,6 @@ struct _sim_cpu { #define PENDING_SLOT_REG ((STATE_CPU (sd, 0))->pending_slot_reg) #define PENDING_SLOT_VALUE ((STATE_CPU (sd, 0))->pending_slot_value) -#if 0 - /* The following are not used for MIPS IV onwards: */ #define PENDING_FILL(r,v) {\ /* printf("DBG: FILL BEFORE pending_in = %d, pending_out = %d, pending_total = %d\n",PENDING_IN,PENDING_OUT,PENDING_TOTAL); */\ @@ -448,7 +447,6 @@ struct _sim_cpu { PENDING_IN = 0;\ /*printf("DBG: FILL AFTER pending_in = %d, pending_out = %d, pending_total = %d\n",PENDING_IN,PENDING_OUT,PENDING_TOTAL);*/\ } -#endif /* LLBIT = Load-Linked bit. A bit of "virtual" state used by atomic