[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] !fixup "target/avr: Add defintions of AVR core types"
From: |
Aleksandar Markovic |
Subject: |
Re: [PATCH] !fixup "target/avr: Add defintions of AVR core types" |
Date: |
Sat, 8 Feb 2020 17:01:30 +0100 |
On Sat, Feb 8, 2020 at 3:06 PM Philippe Mathieu-Daudé <address@hidden> wrote:
>
> Hi Aleksandar,
>
> On 2/8/20 8:10 AM, Aleksandar Markovic wrote:
> > On Friday, February 7, 2020, Philippe Mathieu-Daudé <address@hidden
> > <mailto:address@hidden>> wrote:
> >
> > These cores have unresolved review comment:
> > https://www.mail-archive.com/address@hidden/msg674105.html
> > <https://www.mail-archive.com/address@hidden/msg674105.html>
> > https://www.mail-archive.com/address@hidden/msg674259.html
> > <https://www.mail-archive.com/address@hidden/msg674259.html>
> > and:
> > https://www.mail-archive.com/address@hidden/msg676046.html
> > <https://www.mail-archive.com/address@hidden/msg676046.html>
> >
> > As we don't want a bad start with this architecture, remove them.
> >
> >
> > I agree with underlying motivation of your fixup.
> >
> > Still, the division of AVR cores into avr1, avr2, ... , xmega7 is here
> > to stay. The reason is that because such coding is a part of ELF header,
> > and this means they will stay forever (as they are approved by some kind
> > of ELF comitee, and are meant not to be ever changed in future).
>
> I am not removing anything ELF related. We don't have any machine using
> CPU avrtiny/avr1/avr2/avr25 so AFAIK I'm simply removing unreviewed dead
> code.
>
The portion of the code that classifies AVR cores is and should remain
as independent as possible of the machine-related code. In other
words, my point is that your fixup is inadequate. We should not touch
the portion of the code that enumarates AVR core types, except to add
some TODO notes as noted during review. If one wants to remove "dead"
code as defined by you, one should leave just two AVR core types and
also eliminate at least half of "AVRFeatures", which is absurd.
There is much less intrusive solution to this, that will also provide
guarantee that we never emulate the code that we know has some issues,
or support for it is not completed yet.
You should read more carefully previous reviews, and you'll see that
Michael and I agreed that support for "avrtiny" cores will be provided
in some point in future, but this doesn't mean we should delete that
AVR type from the current code.
I hope I am clear enough to you now. :)
Regards,
Aleksandar
- [PATCH rc5 03/32] target/avr: CPU class: Add interrupt handling support, (continued)
- [PATCH rc5 03/32] target/avr: CPU class: Add interrupt handling support, Aleksandar Markovic, 2020/02/06
- [PATCH rc5 06/32] target/avr: CPU class: Add GDB support, Aleksandar Markovic, 2020/02/06
- [PATCH rc5 15/32] target/avr: Add instruction translation - MCU Control Instructions, Aleksandar Markovic, 2020/02/06
- [PATCH rc5 02/32] target/avr: Introduce basic CPU class object, Aleksandar Markovic, 2020/02/06
- [PATCH rc5 16/32] target/avr: Add instruction translation - CPU main translation function, Aleksandar Markovic, 2020/02/06
- [PATCH rc5 14/32] target/avr: Add instruction translation - Bit and Bit-test Instructions, Aleksandar Markovic, 2020/02/06
- [PATCH rc5 08/32] target/avr: Add defintions of AVR core types, Aleksandar Markovic, 2020/02/06
[PATCH rc5 18/32] target/avr: Add support for disassembling via option '-d in_asm', Aleksandar Markovic, 2020/02/06
[PATCH rc5 12/32] target/avr: Add instruction translation - Branch Instructions, Aleksandar Markovic, 2020/02/06
[PATCH rc5 17/32] target/avr: Initialize TCG register variables, Aleksandar Markovic, 2020/02/06
[PATCH rc5 30/32] .travis.yml: Run the AVR acceptance tests, Aleksandar Markovic, 2020/02/06
[PATCH rc5 27/32] tests/machine-none: Add AVR support, Aleksandar Markovic, 2020/02/06
[PATCH rc5 23/32] hw/avr: Add support for loading ELF/raw binaries, Aleksandar Markovic, 2020/02/06
[PATCH rc5 25/32] hw/avr: Add limited support for some Arduino boards, Aleksandar Markovic, 2020/02/06
[PATCH rc5 22/32] target/avr: Register AVR support with the rest of QEMU, Aleksandar Markovic, 2020/02/06
[PATCH rc5 28/32] tests/boot-serial: Test some Arduino boards (AVR based), Aleksandar Markovic, 2020/02/06
[PATCH rc5 32/32] target/avr: Add section into QEMU documentation, Aleksandar Markovic, 2020/02/06