Revision 20b749f6 target-sparc/op_helper.c

b/target-sparc/op_helper.c
806 806
    uint64_t ret = 0;
807 807

  
808 808
    if ((asi < 0x80 && (env->pstate & PS_PRIV) == 0)
809
        || (asi >= 0x30 && asi < 0x80) && !(env->hpstate & HS_PRIV))
809
        || (asi >= 0x30 && asi < 0x80 && !(env->hpstate & HS_PRIV)))
810 810
        raise_exception(TT_PRIV_ACT);
811 811

  
812 812
    switch (asi) {
......
1023 1023
void helper_st_asi(int asi, int size)
1024 1024
{
1025 1025
    if ((asi < 0x80 && (env->pstate & PS_PRIV) == 0)
1026
        || (asi >= 0x30 && asi < 0x80) && !(env->hpstate & HS_PRIV))
1026
        || (asi >= 0x30 && asi < 0x80 && !(env->hpstate & HS_PRIV)))
1027 1027
        raise_exception(TT_PRIV_ACT);
1028 1028

  
1029 1029
    /* Convert to little endian */

Also available in: Unified diff