Revision 417bf010 target-ppc/translate_init.c

b/target-ppc/translate_init.c
4024 4024
#define POWERPC_BFDM_970     (bfd_mach_ppc64)
4025 4025
#define POWERPC_FLAG_970     (POWERPC_FLAG_VRE)
4026 4026

  
4027
#if defined(CONFIG_USER_ONLY)
4028
#define POWERPC970_HID5_INIT 0x00000080
4029
#else
4030
#define POWERPC970_HID5_INIT 0x00000000
4031
#endif
4032

  
4027 4033
static void init_proc_970 (CPUPPCState *env)
4028 4034
{
4029 4035
    gen_spr_ne_601(env);
......
4050 4056
    spr_register(env, SPR_970_HID5, "HID5",
4051 4057
                 SPR_NOACCESS, SPR_NOACCESS,
4052 4058
                 &spr_read_generic, &spr_write_generic,
4053
#if defined(CONFIG_USER_ONLY)
4054
                 0x00000080
4055
#else
4056
                 0x00000000
4057
#endif
4058
                 );
4059
                 POWERPC970_HID5_INIT);
4059 4060
    /* Memory management */
4060 4061
    /* XXX: not correct */
4061 4062
    gen_low_BATs(env);
......
4123 4124
    spr_register(env, SPR_970_HID5, "HID5",
4124 4125
                 SPR_NOACCESS, SPR_NOACCESS,
4125 4126
                 &spr_read_generic, &spr_write_generic,
4126
#if defined(CONFIG_USER_ONLY)
4127
                 0x00000080
4128
#else
4129
                 0x00000000
4130
#endif
4131
                 );
4127
                 POWERPC970_HID5_INIT);
4132 4128
    /* Memory management */
4133 4129
    /* XXX: not correct */
4134 4130
    gen_low_BATs(env);
......
4196 4192
    spr_register(env, SPR_970_HID5, "HID5",
4197 4193
                 SPR_NOACCESS, SPR_NOACCESS,
4198 4194
                 &spr_read_generic, &spr_write_generic,
4199
#if defined(CONFIG_USER_ONLY)
4200
                 0x00000080
4201
#else
4202
                 0x00000000
4203
#endif
4204
                 );
4195
                 POWERPC970_HID5_INIT);
4205 4196
    /* Memory management */
4206 4197
    /* XXX: not correct */
4207 4198
    gen_low_BATs(env);

Also available in: Unified diff