int64_helper.c (6e040755f12eba34d2fa3d56b18de32d63fea631) int64_helper.c (cbc3a6a4cc675516328a2b0d3602355d68b6302d)
1/*
2 * Sparc64 interrupt helpers
3 *
4 * Copyright (c) 2003-2005 Fabrice Bellard
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 132 unchanged lines hidden (view full) ---

141 env->htstate[env->tl] = env->hpstate;
142 /* XXX OpenSPARC T1 - UltraSPARC T3 have MAXPTL=2
143 but this may change in the future */
144 if (env->tl > 2) {
145 env->hpstate |= HS_PRIV;
146 }
147 }
148
1/*
2 * Sparc64 interrupt helpers
3 *
4 * Copyright (c) 2003-2005 Fabrice Bellard
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 132 unchanged lines hidden (view full) ---

141 env->htstate[env->tl] = env->hpstate;
142 /* XXX OpenSPARC T1 - UltraSPARC T3 have MAXPTL=2
143 but this may change in the future */
144 if (env->tl > 2) {
145 env->hpstate |= HS_PRIV;
146 }
147 }
148
149 if (env->def->features & CPU_FEATURE_GL) {
150 tsptr->tstate |= (env->gl & 7ULL) << 40;
151 cpu_gl_switch_gregs(env, env->gl + 1);
152 env->gl++;
153 }
154
149 switch (intno) {
150 case TT_IVEC:
151 if (!cpu_has_hypervisor(env)) {
152 cpu_change_pstate(env, PS_PEF | PS_PRIV | PS_IG);
153 }
154 break;
155 case TT_TFAULT:
156 case TT_DFAULT:

--- 76 unchanged lines hidden ---
155 switch (intno) {
156 case TT_IVEC:
157 if (!cpu_has_hypervisor(env)) {
158 cpu_change_pstate(env, PS_PEF | PS_PRIV | PS_IG);
159 }
160 break;
161 case TT_TFAULT:
162 case TT_DFAULT:

--- 76 unchanged lines hidden ---