[Simh] O2 optimization on Linux

Jason Stevens neozeed at gmail.com
Mon Jan 3 14:57:50 EST 2011


wait, it should have been more like this


> #define ML_SBR_TEST(r) if (((uint32)(r)) & 0xC000003u) != 0) RSVD_OPND_FAULT
> #define ML_PXBR_TEST(r) if (((((uint32)(r)) & 0x80000000u) == 0) || \
>                            (((uint32)(r)) & 0x40000003u) != 0))
> RSVD_OPND_FAULT

into this:

#define ML_SBR_TEST(r)  if (((uint32)(r) & 0xC0000003u)!=0) RSVD_OPND_FAULT

#define ML_PXBR_TEST(r) if (((((uint32)r) & 0x80000000u) == 0) || \
                            (((uint32)r) & 0x40000003u)!=0) RSVD_OPND_FAULT



More information about the Simh mailing list