qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v7 0/7] target/mips: Limited support for the R59


From: Laurent Vivier
Subject: Re: [Qemu-devel] [PATCH v7 0/7] target/mips: Limited support for the R5900
Date: Fri, 19 Oct 2018 15:28:15 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

Le 15/10/2018 à 14:16, Aleksandar Markovic a écrit :
>> From: Fredrik Noring <address@hidden>
>> Sent: Saturday, October 13, 2018 1:09 PM
>> To: Aleksandar Markovic; Maciej W. Rozycki; Philippe Mathieu-Daudé
>> Cc: Richard Henderson; Aurelien Jarno; Petar Jovanovic; Peter Maydell; 
>> Jürgen Urban; > address@hidden
>> Subject: [PATCH v7 0/7] target/mips: Limited support for the R5900
>>
>> The primary purpose of these changes is to support programs compiled
>> by GCC for the R5900 target and thereby run R5900 Linux distributions,
>> for example Gentoo.
>>
> 
> Hello, Fredrik.
> 
> Your series is getting better and better with each version, which is very 
> good. For a change, I don't have any objection about the title. :) Patch 7 
> will be integrated shortly in the MIPS queue, you don't need to worry about 
> it. With this series you are not only supporting your prime use case, but you 
> are introducing a new instruction set to QEMU. Try to step back and get wider 
> perspective. No matter how limited the support for the new ISA is, its 
> introduction to QEMU must have following elements:
> 
> (1) Definition of basic preprocessor constants for the new ISA.
> (2) All opcodes for the ISA.
> (3) Basic decoding engine for new instructions.
> 
> Your patch 1 adresses 1). However, there are no patches for (2) and (3) in 
> this series. Let me walk though the details on how to implement (2) and (3).
> 
> (2) All opcodes for the ISA.

As Fredrik only wants to use R5900 gentoo userland binaries using qemu
linux-user mode, does he really need to implement all the opcodes of the
ISA?

Most of the architectures have started with only the userland
instruction set, and the privileged instruction set was added once this
part was validated (see the risu project
https://wiki.linaro.org/PeterMaydell/Risu). It was really helpful for me
to add the m680x0 processor emulation in QEMU by this way (I've added
FPU and MMU later)

It can be a lot of work to add all the opcodes for the ISA, and be very
time consuming, and Fredrik has only test case for the opcode he has
implemented, the rest of the ISA will not be tested, or will need more
work from him.

So perhaps a not fully implemented R5900 ISA (with big WARNINGs in the
code, and perhaps assert()?) would be better than nothing at all?

Thanks,
Laurent






reply via email to

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