qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH qom-cpu v2 18/29] cpu: Turn cpu_unassigned_acces


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH qom-cpu v2 18/29] cpu: Turn cpu_unassigned_access() into a CPUState hook
Date: Fri, 21 Jun 2013 12:31:43 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

Am 17.06.2013 22:34, schrieb Richard Henderson:
> On 06/16/2013 08:57 AM, Andreas Färber wrote:
>> +        cpu = CPU(alpha_env_get_cpu(cpu_single_env));
>> +        cs = CPU(alpha_env_get_cpu(cpu_single_env));
>> +    CPUState *cpu_single_cpu = CPU(alpha_env_get_cpu(cpu_single_env));
>> +        cs = CPU(alpha_env_get_cpu(cpu_single_env));
> 
> ENV_GET_CPU.

Intentional, and all of these get replaced later on anyway.

>> +    cpu_class_set_do_unassigned_access(cc, alpha_cpu_unassigned_access);
> 
> Wouldn't it be better to arrange for the function to exist always, with
> differing implementation for user and system, much like do_interrupt?

Sure, that would be possible. But determining what the user
implementation should do would be up to the target, i.e. you for alpha.

> What you've got is good enough for now, I suppose.

Thanks, v3 coming up.

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg



reply via email to

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