X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Ffrv%2Ffrv-sim.h;h=ce5d492766d1be2c2c906a99044914f699fe81b6;hb=676a64f422161303f6d57fca0d244400a1cdd576;hp=39da19c37beec6b954351b45621a893cdcbcf03a;hpb=c7a48b9ac9215f67421a769c2986b6eb2a69780b;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/frv/frv-sim.h b/sim/frv/frv-sim.h index 39da19c37b..ce5d492766 100644 --- a/sim/frv/frv-sim.h +++ b/sim/frv/frv-sim.h @@ -23,11 +23,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "sim-options.h" -/* Not defined in the cgen cpu file for access restriction purposes. */ -#define H_SPR_ACC4 1412 -#define H_SPR_ACC63 1471 -#define H_SPR_ACCG4 1476 -#define H_SPR_ACCG63 1535 +/* True if SPR is the number of accumulator or accumulator guard register. */ +#define SPR_IS_ACC(SPR) ((SPR) >= 1408 && (SPR) <= 1535) /* Initialization of the frv cpu. */ void frv_initialize (SIM_CPU *, SIM_DESC);