From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: Fredrik Noring <noring@nocrew.org>
Cc: "Aleksandar Markovic" <amarkovic@wavecomp.com>,
"Maciej W. Rozycki" <macro@linux-mips.org>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Aurelien Jarno" <aurelien@aurel32.net>,
"Petar Jovanovic" <pjovanovic@wavecomp.com>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Jürgen Urban" <JuergenUrban@gmx.de>,
"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v7 1/7] target/mips: Define R5900 instructions and CPU preprocessor constants
Date: Sun, 14 Oct 2018 16:31:50 +0200 [thread overview]
Message-ID: <CAAdtpL7acK7xsvk-OzBaciuW-Lv3Rde7K+_AOa8ad-od-a86_w@mail.gmail.com> (raw)
In-Reply-To: <c33bd47dc5382728314e200f0e9fd713898540d9.1539428198.git.noring@nocrew.org>
On Sat, Oct 13, 2018 at 1:10 PM Fredrik Noring <noring@nocrew.org> wrote:
>
> The R5900 implements the 64-bit MIPS III instruction set except DMULT,
> DMULTU, DDIV, DDIVU, LL, SC, LLD and SCD. The MIPS IV instructions MOVN,
> MOVZ and PREF are implemented. It has the R5900 specific three-operand
> instructions MADD, MADDU, MULT and MULTU as well as pipeline 1 versions
> MULT1, MULTU1, DIV1, DIVU1, MADD1, MADDU1, MFHI1, MFLO1, MTHI1 and
> MTLO1. A set of 93 128-bit multimedia instructions specific to the
> R5900 is also implemented.
>
> The Toshiba TX System RISC TX79 Core Architecture manual
>
> http://www.lukasz.dk/files/tx79architecture.pdf
Also available on https://wiki.qemu.org/File:C790.pdf
>
> describes the C790 processor that is a follow-up to the R5900. There
> are a few notable differences in that the R5900 FPU
>
> - is not IEEE 754-1985 compliant,
> - does not implement double format, and
> - its machine code is nonstandard.
>
> Signed-off-by: Fredrik Noring <noring@nocrew.org>
> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> target/mips/mips-defs.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/target/mips/mips-defs.h b/target/mips/mips-defs.h
> index c8e99791ad..76550de2da 100644
> --- a/target/mips/mips-defs.h
> +++ b/target/mips/mips-defs.h
> @@ -53,6 +53,7 @@
> #define ASE_MSA 0x01000000
>
> /* Chip specific instructions. */
> +#define INSN_R5900 0x10000000
> #define INSN_LOONGSON2E 0x20000000
> #define INSN_LOONGSON2F 0x40000000
> #define INSN_VR54XX 0x80000000
> @@ -63,6 +64,7 @@
> #define CPU_MIPS3 (CPU_MIPS2 | ISA_MIPS3)
> #define CPU_MIPS4 (CPU_MIPS3 | ISA_MIPS4)
> #define CPU_VR54XX (CPU_MIPS4 | INSN_VR54XX)
> +#define CPU_R5900 (CPU_MIPS3 | INSN_R5900)
> #define CPU_LOONGSON2E (CPU_MIPS3 | INSN_LOONGSON2E)
> #define CPU_LOONGSON2F (CPU_MIPS3 | INSN_LOONGSON2F)
>
> --
> 2.16.4
>
next prev parent reply other threads:[~2018-10-14 14:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-13 11:09 [Qemu-devel] [PATCH v7 0/7] target/mips: Limited support for the R5900 Fredrik Noring
2018-10-13 11:10 ` [Qemu-devel] [PATCH v7 1/7] target/mips: Define R5900 instructions and CPU preprocessor constants Fredrik Noring
2018-10-14 14:31 ` Philippe Mathieu-Daudé [this message]
2018-10-13 11:10 ` [Qemu-devel] [PATCH v7 2/7] target/mips: Support R5900 specific three-operand MULT and MULTU Fredrik Noring
2018-10-13 11:10 ` [Qemu-devel] [PATCH v7 3/7] target/mips: Support R5900 instructions MOVN, MOVZ and PREF from MIPS IV Fredrik Noring
2018-10-13 11:10 ` [Qemu-devel] [PATCH v7 4/7] target/mips: R5900 DMULT[U], DDIV[U], LL[D] and SC[D] are user only Fredrik Noring
2018-10-13 11:10 ` [Qemu-devel] [PATCH v7 5/7] target/mips: Define the R5900 CPU Fredrik Noring
2018-10-13 11:11 ` [Qemu-devel] [PATCH v7 6/7] linux-user/mips: Recognise the R5900 CPU model Fredrik Noring
2018-10-13 11:11 ` [Qemu-devel] [PATCH v7 7/7] elf: Toshiba/Sony rather than MIPS are the implementors of the R5900 Fredrik Noring
2018-10-15 11:01 ` Aleksandar Markovic
2018-10-15 12:16 ` [Qemu-devel] [PATCH v7 0/7] target/mips: Limited support for " Aleksandar Markovic
2018-10-19 13:28 ` Laurent Vivier
2018-10-19 17:33 ` Aleksandar Markovic
2018-10-21 14:18 ` Fredrik Noring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAAdtpL7acK7xsvk-OzBaciuW-Lv3Rde7K+_AOa8ad-od-a86_w@mail.gmail.com \
--to=f4bug@amsat.org \
--cc=JuergenUrban@gmx.de \
--cc=amarkovic@wavecomp.com \
--cc=aurelien@aurel32.net \
--cc=macro@linux-mips.org \
--cc=noring@nocrew.org \
--cc=peter.maydell@linaro.org \
--cc=pjovanovic@wavecomp.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).