[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/2] monitor: Split mon_get_cpu fn to remove ENV
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 1/2] monitor: Split mon_get_cpu fn to remove ENV_GET_CPU |
Date: |
Mon, 18 May 2015 09:13:04 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
On 05/17/2015 12:51 PM, Peter Crosthwaite wrote:
> @@ -1208,7 +1203,6 @@ static void monitor_printc(Monitor *mon, int c)
> static void memory_dump(Monitor *mon, int count, int format, int wsize,
> hwaddr addr, int is_physical)
> {
> - CPUArchState *env;
> int l, line_size, i, max_digits, len;
> uint8_t buf[16];
> uint64_t v;
> @@ -1216,8 +1210,8 @@ static void memory_dump(Monitor *mon, int count, int
> format, int wsize,
> if (format == 'i') {
> int flags;
> flags = 0;
> - env = mon_get_cpu();
> #ifdef TARGET_I386
> + CPUArchState *env = mon_get_env();
> if (wsize == 2) {
C99 declaration after statement. I forget if we care or not?
Anyway, fixable by changing the line above to
int flags = 0;
Otherwise,
Reviewed-by: Richard Henderson <address@hidden>
r~
[Qemu-devel] [PATCH 2/2] disas: Remove uses of CPU env, Peter Crosthwaite, 2015/05/17