Revision b55266b5 target-ppc/translate_init.c

b/target-ppc/translate_init.c
34 34
#endif
35 35

  
36 36
struct ppc_def_t {
37
    const unsigned char *name;
37
    const char *name;
38 38
    uint32_t pvr;
39 39
    uint32_t svr;
40 40
    uint64_t insns_flags;
......
433 433
     _spr_register(env, num, name, uea_read, uea_write, initial_value);       \
434 434
} while (0)
435 435
static inline void _spr_register (CPUPPCState *env, int num,
436
                                  const unsigned char *name,
436
                                  const char *name,
437 437
                                  void (*uea_read)(void *opaque, int sprn),
438 438
                                  void (*uea_write)(void *opaque, int sprn),
439 439
                                  target_ulong initial_value)
440 440
#else
441 441
static inline void spr_register (CPUPPCState *env, int num,
442
                                 const unsigned char *name,
442
                                 const char *name,
443 443
                                 void (*uea_read)(void *opaque, int sprn),
444 444
                                 void (*uea_write)(void *opaque, int sprn),
445 445
                                 void (*oea_read)(void *opaque, int sprn),
......
1245 1245
/* PowerPC BookE SPR */
1246 1246
static void gen_spr_BookE (CPUPPCState *env, uint64_t ivor_mask)
1247 1247
{
1248
    const unsigned char *ivor_names[64] = {
1248
    const char *ivor_names[64] = {
1249 1249
        "IVOR0",  "IVOR1",  "IVOR2",  "IVOR3",
1250 1250
        "IVOR4",  "IVOR5",  "IVOR6",  "IVOR7",
1251 1251
        "IVOR8",  "IVOR9",  "IVOR10", "IVOR11",
......
1407 1407
static void gen_spr_BookE_FSL (CPUPPCState *env, uint32_t mas_mask)
1408 1408
{
1409 1409
#if !defined(CONFIG_USER_ONLY)
1410
    const unsigned char *mas_names[8] = {
1410
    const char *mas_names[8] = {
1411 1411
        "MAS0", "MAS1", "MAS2", "MAS3", "MAS4", "MAS5", "MAS6", "MAS7",
1412 1412
    };
1413 1413
    int mas_sprn[8] = {
......
9157 9157
static void dump_ppc_insns (CPUPPCState *env)
9158 9158
{
9159 9159
    opc_handler_t **table, *handler;
9160
    const unsigned char *p, *q;
9160
    const char *p, *q;
9161 9161
    uint8_t opc1, opc2, opc3;
9162 9162

  
9163 9163
    printf("Instructions set:\n");
......
9240 9240
    init_ppc_proc(env, def);
9241 9241
#if defined(PPC_DUMP_CPU)
9242 9242
    {
9243
        const unsigned char *mmu_model, *excp_model, *bus_model;
9243
        const char *mmu_model, *excp_model, *bus_model;
9244 9244
        switch (env->mmu_model) {
9245 9245
        case POWERPC_MMU_32B:
9246 9246
            mmu_model = "PowerPC 32";
......
9443 9443

  
9444 9444
#include <ctype.h>
9445 9445

  
9446
const ppc_def_t *cpu_ppc_find_by_name (const unsigned char *name)
9446
const ppc_def_t *cpu_ppc_find_by_name (const char *name)
9447 9447
{
9448 9448
    const ppc_def_t *ret;
9449
    const unsigned char *p;
9449
    const char *p;
9450 9450
    int i, max, len;
9451 9451

  
9452 9452
    /* Check if the given name is a PVR */

Also available in: Unified diff