qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v9 00/10] 8bit AVR cores


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v9 00/10] 8bit AVR cores
Date: Tue, 5 Jul 2016 22:04:08 +0100

On 5 July 2016 at 21:31, Michael Rolnik <address@hidden> wrote:
> <quote>
>     As Richard says you have problems with trying to write
>     CPU registers from a device anyway, but please consider
>     trying to have some level of abstraction rather than
>     just having the device code reach into the CPU object.
>     The general model here is real hardware and devices, and
>     a real device has no access into the inside workings of
>     another one except via whatever interfaces the other
>     device explicitly provides.
>
>     (Better still would be if we don't need to do any of this
>     at all, because it gets pretty ugly pretty quickly.
>     The guest has access to its own registers by definition,
>     so having a second way to read and write them via memory
>     is a bit weird.)
> </quote>
>
> The code is already fixed.

I just looked back at the v9 patch, and it is still
just directly reaching into the CPU object, which is
what I suggested you do not want to do.

thanks
-- PMM



reply via email to

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