From d6b9c31dc9bc90f68ecf510b5b612949ac06c9fd Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Wed, 16 Sep 2015 16:04:12 +0700 Subject: [PATCH] sparc: more cleanup --- qemu/hw/sparc64/sun4u.c | 2 -- qemu/target-sparc/unicorn.c | 6 ------ qemu/target-sparc/unicorn64.c | 6 ------ 3 files changed, 14 deletions(-) diff --git a/qemu/hw/sparc64/sun4u.c b/qemu/hw/sparc64/sun4u.c index e7d619f5..7377a023 100644 --- a/qemu/hw/sparc64/sun4u.c +++ b/qemu/hw/sparc64/sun4u.c @@ -43,8 +43,6 @@ static void sun4u_init(struct uc_struct *uc, MachineState *machine) fprintf(stderr, "Unable to find Sparc CPU definition\n"); exit(1); } - - cpu_sparc_set_id(&cpu->env, 0); } void sun4u_machine_init(struct uc_struct *uc) diff --git a/qemu/target-sparc/unicorn.c b/qemu/target-sparc/unicorn.c index b8ea29d8..d86497b5 100644 --- a/qemu/target-sparc/unicorn.c +++ b/qemu/target-sparc/unicorn.c @@ -69,12 +69,6 @@ int sparc_reg_read(struct uc_struct *uc, unsigned int regid, void *value) return 0; } - -#define WRITE_DWORD(x, w) (x = (x & ~0xffffffff) | (w & 0xffffffff)) -#define WRITE_WORD(x, w) (x = (x & ~0xffff) | (w & 0xffff)) -#define WRITE_BYTE_H(x, b) (x = (x & ~0xff00) | (b & 0xff)) -#define WRITE_BYTE_L(x, b) (x = (x & ~0xff) | (b & 0xff)) - int sparc_reg_write(struct uc_struct *uc, unsigned int regid, const void *value) { CPUState *mycpu = first_cpu; diff --git a/qemu/target-sparc/unicorn64.c b/qemu/target-sparc/unicorn64.c index a51272de..e9257b75 100644 --- a/qemu/target-sparc/unicorn64.c +++ b/qemu/target-sparc/unicorn64.c @@ -69,12 +69,6 @@ int sparc_reg_read(struct uc_struct *uc, unsigned int regid, void *value) return 0; } - -#define WRITE_DWORD(x, w) (x = (x & ~0xffffffff) | (w & 0xffffffff)) -#define WRITE_WORD(x, w) (x = (x & ~0xffff) | (w & 0xffff)) -#define WRITE_BYTE_H(x, b) (x = (x & ~0xff00) | (b & 0xff)) -#define WRITE_BYTE_L(x, b) (x = (x & ~0xff) | (b & 0xff)) - int sparc_reg_write(struct uc_struct *uc, unsigned int regid, const void *value) { CPUState *mycpu = first_cpu;