|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH v4 2/9] target-avr: adding AVR CPU features/flavors |
Date: | Mon, 6 Jun 2016 13:25:10 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 |
On 06/06/2016 03:37 AM, Michael Rolnik wrote:
@@ -55,12 +55,14 @@ static void avr_cpu_reset(CPUState *s) AVRCPU *cpu = AVR_CPU(s); AVRCPUClass *mcc = AVR_CPU_GET_CLASS(cpu); CPUAVRState *env = &cpu->env; + uint32_t features = env->features; mcc->parent_reset(s); memset(env, 0, sizeof(CPUAVRState)); env->pc = 0; env->sregI = 1; + env->features = features;
Didn't fix the memset issue I pointed out.
+} +static void avr_avr6_initfn(Object *obj)
Spacing.
+} +static void avr_xmega2_initfn(Object *obj)
Spacing.
+} +static void avr_xmega4_initfn(Object *obj)
Spacing.
+} +static void avr_xmega5_initfn(Object *obj)
Spacing.
+} +static void avr_xmega7_initfn(Object *obj)
Spacing.
+static inline void avr_del_feature( + CPUAVRState *env, + int feature) +{ + env->features &= ~(1Ul << feature); +}
Dead code. r~
[Prev in Thread] | Current Thread | [Next in Thread] |