- Aug 21, 2019
-
-
Paul A. Clarke authored
ISA 3.0B added a set of Floating-Point Status and Control Register (FPSCR) instructions: mffsce, mffscdrn, mffscdrni, mffscrn, mffscrni, mffsl. This patch adds support for 'mffsl'. 'mffsl' is identical to 'mffs', except it only returns mode, status, and enable bits from the FPSCR. On CPUs without support for 'mffsl' (below ISA 3.0), the 'mffsl' instruction will execute identically to 'mffs'. Note: I renamed FPSCR_RN to FPSCR_RN0 so I could create an FPSCR_RN mask which is both bits of the FPSCR rounding mode, as defined in the ISA. I also fixed a typo in the definition of FPSCR_FR. Signed-off-by:
Paul A. Clarke <pc@us.ibm.com> v4: - nit: added some braces to resolve a checkpatch complaint. v3: - Changed tcg_gen_and_i64 to tcg_gen_andi_i64, eliminating the need for a temporary, per review from Richard Henderson. v2: - I found that I copied too much of the 'mffs' implementation. The 'Rc' condition code bits are not needed for 'mffsl'. Removed. - I now free the (renamed) 'tmask' temporary. - I now bail early for older ISA to the original 'mffs' implementation. Message-Id: <1565982203-11048-1-git-send-email-pc@us.ibm.com> Signed-off-by:
David Gibson <david@gibson.dropbear.id.au>
-
- Jun 27, 2019
-
-
Wladimir J. van der Laan authored
The constraint for `rdinstreth` was comparing the csr number to 0xc80, which is `cycleh` instead. Fix this. Signed-off-by:
Wladimir J. van der Laan <laanwj@gmail.com> Signed-off-by:
Michael Clark <mjc@sifive.com> Signed-off-by:
Alistair Francis <alistair.francis@wdc.com> Reviewed-by:
Palmer Dabbelt <palmer@sifive.com> Signed-off-by:
Palmer Dabbelt <palmer@sifive.com>
-
Michael Clark authored
Due to the design of the disassembler, the immediate is not known during decoding of the opcode; so to handle compressed encodings with reserved immediate values (non-zero), we need to add an additional check during decompression to match reserved encodings with zero immediates and translate them into the illegal instruction. The following compressed opcodes have reserved encodings with zero immediates: c.addi4spn, c.addi, c.lui, c.addi16sp, c.srli, c.srai, c.andi and c.slli Signed-off-by:
Michael Clark <mjc@sifive.com> Signed-off-by:
Alistair Francis <alistair.francis@wdc.com> [Palmer: Broke long lines] Reviewed-by:
Palmer Dabbelt <palmer@sifive.com> Signed-off-by:
Palmer Dabbelt <palmer@sifive.com>
-
- Jun 12, 2019
-
-
Markus Armbruster authored
No header includes qemu-common.h after this commit, as prescribed by qemu-common.h's file comment. Signed-off-by:
Markus Armbruster <armbru@redhat.com> Message-Id: <20190523143508.25387-5-armbru@redhat.com> [Rebased with conflicts resolved automatically, except for include/hw/arm/xlnx-zynqmp.h hw/arm/nrf51_soc.c hw/arm/msf2-soc.c block/qcow2-refcount.c block/qcow2-cluster.c block/qcow2-cache.c target/arm/cpu.h target/lm32/cpu.h target/m68k/cpu.h target/mips/cpu.h target/moxie/cpu.h target/nios2/cpu.h target/openrisc/cpu.h target/riscv/cpu.h target/tilegx/cpu.h target/tricore/cpu.h target/unicore32/cpu.h target/xtensa/cpu.h; bsd-user/main.c and net/tap-bsd.c fixed up]
-
- May 13, 2019
-
-
Markus Armbruster authored
Header guard symbols should match their file name to make guard collisions less likely. Cleaned up with scripts/clean-header-guards.pl, followed by some renaming of new guard symbols picked by the script to better ones. Signed-off-by:
Markus Armbruster <armbru@redhat.com> Message-Id: <20190315145123.28030-6-armbru@redhat.com> [Rebase to master: update include/hw/net/ne2000-isa.h]
-
- Apr 18, 2019
-
-
Markus Armbruster authored
Commit dc99065b (v0.1.0) added dis-asm.h from binutils. Commit 43d4145a (v0.1.5) inlined bfd.h into dis-asm.h to remove the dependency on binutils. Commit 76cad711 (v1.4.0) moved dis-asm.h to include/disas/bfd.h. The new name is confusing when you try to match against (pre GPLv3+) binutils. Rename it back. Keep it in the same directory, of course. Cc: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by:
Markus Armbruster <armbru@redhat.com> Message-Id: <20190417191805.28198-17-armbru@redhat.com> Reviewed-by:
Dr. David Alan Gilbert <dgilbert@redhat.com>
-
- Mar 19, 2019
-
-
Michael Clark authored
Remove machine generated constraints that are not referenced by the pseudo-instruction constraints. Cc: Palmer Dabbelt <palmer@sifive.com> Cc: Sagar Karandikar <sagark@eecs.berkeley.edu> Cc: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Cc: Alistair Francis <Alistair.Francis@wdc.com> Signed-off-by:
Michael Clark <mjc@sifive.com> Signed-off-by:
Alistair Francis <alistair.francis@wdc.com> Signed-off-by:
Palmer Dabbelt <palmer@sifive.com>
-
- Mar 05, 2019
-
-
Aleksandar Markovic authored
Add graphical description of nanoMIPS instruction pool organization. Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com> Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Message-Id: <1551800076-8104-3-git-send-email-aleksandar.markovic@rt-rk.com>
-
Aleksandar Markovic authored
Correct comments to handlers of some DSP instructions. Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com> Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Message-Id: <1551800076-8104-2-git-send-email-aleksandar.markovic@rt-rk.com>
-
- Feb 27, 2019
-
-
Aleksandar Markovic authored
Rename function extract_ac_13_12() to extract_ac_15_14(). Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com> Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Message-Id: <1551185735-17154-3-git-send-email-aleksandar.markovic@rt-rk.com>
-
- Jan 24, 2019
-
-
Aleksandar Markovic authored
Amend some DSP instructions related comments. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
- Jan 11, 2019
-
-
Paolo Bonzini authored
There are not many, and they are all simple mistakes that ended up being committed. Remove them. Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20181213223737.11793-2-pbonzini@redhat.com> Reviewed-by:
Wainer dos Santos Moschetta <wainersm@redhat.com> Acked-by:
Richard Henderson <richard.henderson@linaro.org> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
-
- Jan 03, 2019
-
-
Aleksandar Markovic authored
Add "nanoMIPS32 Instruction Set Technical Reference Manual" as a reference. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Reorder declarations and definitions of gpr decoders by number of input bits of corresponding encoding type. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Comment the decoder of 'gpr1' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename the decoder of 'gpr1' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Comment the decoder of 'gpr2.reg2' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename the decoder of 'gpr2.reg2' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Comment the decoder of 'gpr2.reg1' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename the decoder of 'gpr2.reg1' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Comment the decoder of 'gpr4.zero' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename the decoder of 'gpr4.zero' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Comment the decoder of 'gpr4' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename the decoder of 'gpr4' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Comment the decoder of 'gpr3.src.store' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename the decoder of 'gpr3.src.store' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Comment the decoder of 'gpr3' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename the decoder of 'gpr3' gpr encoding type in nanoMIPS disassembler. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Fix order of extraction function invocations so that extraction goes from MSB side to LSB side of the given instruction coding content. This is desireable because of consistency and easier visual spotting of errors. After this patch, all such invocations should be in the desired order. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename more functions that have names that are hard to understand. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename NMD::extract_ft_20_19_18_17_16(uint64 instruction) to NMD::extract_ft_25_24_23_22_21(uint64 instruction). Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename NMD::extract_fs_15_14_13_12_11(uint64 instruction) to NMD::extract_fs_20_19_18_17_16(uint64 instruction). Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename NMD::extract_fd_10_9_8_7_6(uint64 instruction) to NMD::extract_fd_15_14_13_12_11(uint64 instruction). Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Rename some functions that have names that are hard to understand. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Reviewed-by:
Stefan Markovic <smarkovic@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Fix order of extraction function invocations so that extraction goes from MSB side to LSB side of the given instruction coding content. This is desireable because of consistency and easier visual spotting of errors. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Reviewed-by:
Stefan Markovic <smarkovic@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Fix wrong function name. The convention in these files is that names of extraction functions should reflect bit patterns they are extracting. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Reviewed-by:
Stefan Markovic <smarkovic@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Some functions were not used at all. Compiler doesn't complain since they are class memebers. Remove them - no future usage is planned. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Reviewed-by:
Stefan Markovic <smarkovic@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Aleksandar Markovic authored
Fix several mistakes in preambles of nanomips disassembler source files. Reviewed-by:
Aleksandar Rikalo <arikalo@wavecomp.com> Reviewed-by:
Stefan Markovic <smarkovic@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com>
-
Stefan Weil authored
Use POSIX types and format strings. Reviewed-by:
Aleksandar Markovic <amarkovic@wavecomp.com> Signed-off-by:
Aleksandar Markovic <amarkovic@wavecomp.com> Signed-off-by:
Stefan Weil <sw@weilnetz.de>
-
- Dec 25, 2018
-
-
Richard Henderson authored
This causes a build error with debian sid, riscv64 host: disas/microblaze.c:179: error: "REG_SP" redefined [-Werror] #define REG_SP 1 /* stack pointer */ In file included from /usr/include/signal.h:306, from include/qemu/osdep.h:101, from disas/microblaze.c:36: /usr/include/riscv64-linux-gnu/sys/ucontext.h:36: note: this is the location of the previous definition # define REG_SP 2 Reviewed-by:
Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by:
Richard Henderson <richard.henderson@linaro.org>
-