qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 6/7] monitor: "i": Add ARM specifics


From: Claudio Fontana
Subject: Re: [Qemu-devel] [PATCH 6/7] monitor: "i": Add ARM specifics
Date: Tue, 5 May 2015 16:40:08 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0.1

On 05.05.2015 06:45, Peter Crosthwaite wrote:
> Add the ARM specific disassembly flags setup, so ARM can be correctly
> disassembled from the monitor.
> 
> Signed-off-by: Peter Crosthwaite <address@hidden>
> ---
>  monitor.c | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/monitor.c b/monitor.c
> index d831d98..9d9f1e2 100644
> --- a/monitor.c
> +++ b/monitor.c
> @@ -1217,6 +1217,17 @@ static void memory_dump(Monitor *mon, int count, int 
> format, int wsize,
>          int flags;
>          flags = 0;
>          env = mon_get_cpu();
> +#ifdef TARGET_ARM
> +        if (env->thumb) {
> +            flags |= 1;
> +        }
> +        if (env->bswap_code) {
> +            flags |= 2;
> +        }
> +        if (env->aarch64) {
> +            flags |= 4;
> +        }
> +#endif
>  #ifdef TARGET_I386
>          if (wsize == 2) {
>              flags = 1;
> 

Reviewed-by: Claudio Fontana <address@hidden>
Tested-by: Claudio Fontana <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]