From: Stefan Markovic <stefan.markovic@rt-rk.com>
To: qemu-devel@nongnu.org
Cc: laurent@vivier.eu, riku.voipio@iki.fi,
philippe.mathieu.daude@gmail.com, aurelien@aurel32.net,
richard.henderson@linaro.org, amarkovic@wavecomp.com,
smarkovic@wavecomp.com, pjovanovic@wavecomp.com,
pburton@wavecomp.com
Subject: [Qemu-devel] [PATCH v3 32/40] elf: Add nanoMIPS specific variations in ELF header fields
Date: Thu, 19 Jul 2018 14:55:04 +0200 [thread overview]
Message-ID: <1532004912-13899-33-git-send-email-stefan.markovic@rt-rk.com> (raw)
In-Reply-To: <1532004912-13899-1-git-send-email-stefan.markovic@rt-rk.com>
From: Aleksandar Markovic <amarkovic@wavecomp.com>
Add nanoMIPS-related values in ELF header fields as specified in
nanoMIPS' "ELF ABI Supplement".
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Signed-off-by: Stefan Markovic <smarkovic@wavecomp.com>
---
include/elf.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/include/elf.h b/include/elf.h
index 2c4fe7a..fff5967 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -62,6 +62,24 @@ typedef int64_t Elf64_Sxword;
#define EF_MIPS_NAN2008 0x00000400
#define EF_MIPS_ARCH 0xf0000000
+/* nanoMIPS architecture bits, EF_NANOMIPS_ARCH */
+#define EF_NANOMIPS_ARCH_32R6 0x00000000 /* 32-bit nanoMIPS Release 6 ISA */
+#define EF_NANOMIPS_ARCH_64R6 0x10000000 /* 62-bit nanoMIPS Release 6 ISA */
+
+/* nanoMIPS ABI bits, EF_NANOMIPS_ABI */
+#define EF_NANOMIPS_ABI_P32 0x00001000 /* 32-bit nanoMIPS ABI */
+#define EF_NANOMIPS_ABI_P64 0x00002000 /* 64-bit nanoMIPS ABI */
+
+/* nanoMIPS processor specific flags, e_flags */
+#define EF_NANOMIPS_LINKRELAX 0x00000001 /* Link-time relaxation */
+#define EF_NANOMIPS_PIC 0x00000002 /* Position independant code */
+#define EF_NANOMIPS_32BITMODE 0x00000004 /* 32-bit object for 64-bit arch. */
+#define EF_NANOMIPS_PID 0x00000008 /* Position independant data */
+#define EF_NANOMIPS_PCREL 0x00000010 /* PC-relative mode */
+#define EF_NANOMIPS_ABI 0x0000f000 /* nanoMIPS ABI */
+#define EF_NANOMIPS_MACH 0x00ff0000 /* Machine variant */
+#define EF_NANOMIPS_ARCH 0xf0000000 /* nanoMIPS architecture */
+
/* MIPS machine variant */
#define EF_MIPS_MACH_NONE 0x00000000 /* A standard MIPS implementation */
#define EF_MIPS_MACH_3900 0x00810000 /* Toshiba R3900 */
@@ -143,6 +161,8 @@ typedef int64_t Elf64_Sxword;
#define EM_RISCV 243 /* RISC-V */
+#define EM_NANOMIPS 249 /* Wave Computing nanoMIPS */
+
/*
* This is an interim value that we will use until the committee comes
* up with a final number.
--
2.7.4
next prev parent reply other threads:[~2018-07-19 13:05 UTC|newest]
Thread overview: 89+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-19 12:54 [Qemu-devel] [PATCH v3 00/40] Add nanoMIPS support to QEMU Stefan Markovic
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 01/40] target/mips: Add preprocessor constants for nanoMIPS Stefan Markovic
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 02/40] target/mips: Add nanoMIPS base instruction set opcodes Stefan Markovic
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 03/40] target/mips: Add nanoMIPS DSP ASE opcodes Stefan Markovic
2018-07-19 16:28 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 04/40] target/mips: Add decode_nanomips_opc() function Stefan Markovic
2018-07-19 16:39 ` Richard Henderson
2018-07-24 10:56 ` Aleksandar Markovic
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 05/40] target/mips: Add nanoMIPS decoding and extraction utilities Stefan Markovic
2018-07-19 16:57 ` Richard Henderson
2018-07-24 11:00 ` Aleksandar Markovic
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 06/40] target/mips: Add emulation of misc nanoMIPS 16-bit instructions Stefan Markovic
2018-07-19 18:06 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 07/40] target/mips: Add emulation of nanoMIPS 16-bit load and store instructions Stefan Markovic
2018-07-19 18:28 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 08/40] target/mips: Add emulation of nanoMIPS 16-bit logic instructions Stefan Markovic
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 09/40] target/mips: Add emulation of nanoMIPS 16-bit save and restore instructions Stefan Markovic
2018-07-19 18:34 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 10/40] target/mips: Add emulation of some common nanoMIPS 32-bit instructions Stefan Markovic
2018-07-19 18:52 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 11/40] target/mips: Add emulation of nanoMIPS 48-bit instructions Stefan Markovic
2018-07-19 19:01 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 12/40] target/mips: Add emulation of nanoMIPS FP instructions Stefan Markovic
2018-07-19 19:03 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 13/40] target/mips: Add emulation of misc nanoMIPS instructions (pool32a0) Stefan Markovic
2018-07-19 19:08 ` Richard Henderson
2018-07-25 15:38 ` Aleksandar Markovic
2018-07-25 19:07 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 14/40] target/mips: Add emulation of misc nanoMIPS instructions (pool32axf) Stefan Markovic
2018-07-19 19:13 ` Richard Henderson
2018-07-20 16:15 ` Aleksandar Markovic
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 15/40] target/mips: Add emulation of misc nanoMIPS instructions (pool p_lsx) Stefan Markovic
2018-07-19 19:19 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 16/40] target/mips: Implement emulation of nanoMIPS ROTX instruction Stefan Markovic
2018-07-19 19:19 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 17/40] target/mips: Implement emulation of nanoMIPS EXTW instruction Stefan Markovic
2018-07-19 20:59 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 18/40] target/mips: Add emulation of nanoMIPS 32-bit load and store instructions Stefan Markovic
2018-07-20 4:59 ` Richard Henderson
2018-07-25 15:46 ` Aleksandar Markovic
2018-07-25 19:18 ` Richard Henderson
2018-07-25 19:32 ` Peter Maydell
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 19/40] target/mips: Add emulation of nanoMIPS branch instructions Stefan Markovic
2018-07-20 5:28 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 20/40] target/mips: Implement MT ASE support for nanoMIPS Stefan Markovic
2018-07-21 15:19 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 21/40] target/mips: Implement DSP " Stefan Markovic
2018-07-21 15:52 ` Richard Henderson
2018-07-21 18:04 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 22/40] target/mips: Add handling of branch delay slots " Stefan Markovic
2018-07-21 18:03 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 23/40] target/mips: Implement emulation of nanoMIPS LLWP/SCWP pair Stefan Markovic
2018-07-21 18:15 ` Richard Henderson
2018-07-23 17:21 ` Aleksandar Markovic
2018-07-27 15:29 ` Aleksandar Markovic
2018-07-27 15:50 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 24/40] target/mips: Add updating BadInstr and BadInstrP registers for nanoMIPS Stefan Markovic
2018-07-23 16:36 ` Richard Henderson
2018-07-24 10:47 ` Aleksandar Markovic
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 25/40] target/mips: Add updating CP0 BadInstrX register for nanoMIPs only Stefan Markovic
2018-07-23 16:35 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 26/40] target/mips: Implement CP0 Config0.WR bit functionality Stefan Markovic
2018-07-23 16:46 ` Richard Henderson
2018-07-19 12:54 ` [Qemu-devel] [PATCH v3 27/40] target/mips: Adjust behavior of Config3's ISAOnExc bit for nanoMIPS Stefan Markovic
2018-07-23 16:48 ` Richard Henderson
2018-07-19 12:55 ` [Qemu-devel] [PATCH v3 28/40] target/mips: Adjust exception_resume_pc() " Stefan Markovic
2018-07-23 16:54 ` Richard Henderson
2018-07-19 12:55 ` [Qemu-devel] [PATCH v3 29/40] target/mips: Adjust set_hflags_for_handler() " Stefan Markovic
2018-07-23 16:54 ` Richard Henderson
2018-07-19 12:55 ` [Qemu-devel] [PATCH v3 30/40] target/mips: Adjust set_pc() " Stefan Markovic
2018-07-23 16:55 ` Richard Henderson
2018-07-19 12:55 ` [Qemu-devel] [PATCH v3 31/40] target/mips: Fix ERET/ERETNC behavior related to ADEL exception Stefan Markovic
2018-07-23 16:56 ` Richard Henderson
2018-07-19 12:55 ` Stefan Markovic [this message]
2018-07-23 16:59 ` [Qemu-devel] [PATCH v3 32/40] elf: Add nanoMIPS specific variations in ELF header fields Richard Henderson
2018-07-23 17:39 ` Aleksandar Markovic
2018-07-23 17:43 ` Aleksandar Markovic
2018-07-19 12:55 ` [Qemu-devel] [PATCH v3 33/40] elf: Relax MIPS' elf_check_arch() to accept EM_NANOMIPS too Stefan Markovic
2018-07-23 17:01 ` Richard Henderson
2018-07-19 12:55 ` [Qemu-devel] [PATCH v3 34/40] linux-user: Don't check FCR31_NAN2008 bit for nanoMIPS Stefan Markovic
2018-07-23 17:02 ` Richard Henderson
2018-07-19 12:55 ` [Qemu-devel] [PATCH v3 35/40] mips_malta: Add basic nanoMIPS boot code for MIPS' Malta Stefan Markovic
2018-07-19 12:55 ` [Qemu-devel] [PATCH v3 36/40] mips_malta: Setup GT64120 BARs in nanoMIPS bootloader Stefan Markovic
2018-07-19 12:55 ` [Qemu-devel] [PATCH v3 37/40] mips_malta: Fix semihosting argument passing for nanoMIPS bare metal Stefan Markovic
2018-07-19 12:55 ` [Qemu-devel] [PATCH v3 38/40] gdbstub: Disable handling of nanoMIPS ISA bit in the MIPS gdbstub Stefan Markovic
2018-07-23 17:03 ` Richard Henderson
2018-07-19 12:55 ` [Qemu-devel] [PATCH v3 39/40] gdbstub: Add XML support for GDB for nanoMIPS Stefan Markovic
2018-07-19 12:55 ` [Qemu-devel] [PATCH v3 40/40] target/mips: Add definition of nanoMIPS I7200 CPU Stefan Markovic
2018-07-23 17:05 ` Richard Henderson
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=1532004912-13899-33-git-send-email-stefan.markovic@rt-rk.com \
--to=stefan.markovic@rt-rk.com \
--cc=amarkovic@wavecomp.com \
--cc=aurelien@aurel32.net \
--cc=laurent@vivier.eu \
--cc=pburton@wavecomp.com \
--cc=philippe.mathieu.daude@gmail.com \
--cc=pjovanovic@wavecomp.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=riku.voipio@iki.fi \
--cc=smarkovic@wavecomp.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.