Revision c19148bd target-sparc/cpu.h

b/target-sparc/cpu.h
252 252
    float128 qt0, qt1;
253 253
    float_status fp_status;
254 254
#if defined(TARGET_SPARC64)
255
#define MAXTL 4
255
#define MAXTL_MAX 8
256
#define MAXTL_MASK (MAXTL_MAX - 1)
256 257
    trap_state *tsptr;
257
    trap_state ts[MAXTL];
258
    trap_state ts[MAXTL_MAX];
258 259
    uint32_t xcc;               /* Extended integer condition codes */
259 260
    uint32_t asi;
260 261
    uint32_t pstate;
261 262
    uint32_t tl;
263
    uint32_t maxtl;
262 264
    uint32_t cansave, canrestore, otherwin, wstate, cleanwin;
263 265
    uint64_t agregs[8]; /* alternate general registers */
264 266
    uint64_t bgregs[8]; /* backup for normal global registers */
......
270 272
    uint64_t gsr;
271 273
    uint32_t gl; // UA2005
272 274
    /* UA 2005 hyperprivileged registers */
273
    uint64_t hpstate, htstate[MAXTL], hintp, htba, hver, hstick_cmpr, ssr;
275
    uint64_t hpstate, htstate[MAXTL_MAX], hintp, htba, hver, hstick_cmpr, ssr;
274 276
    void *hstick; // UA 2005
275 277
#endif
276 278
    uint32_t features;

Also available in: Unified diff