MIPS patches for 2021-06-25
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
The following changes since commit d0ac9a61474cf594d19082bc8976247e984ea9a3:
Merge remote-tracking branch 'remotes/thuth-gitlab/tags/pull-request-2021-06-21' into staging (2021-06-24 09:31:26 +0100)
are available in the Git repository at:
https://github.com/philmd/qemu.git tags/mips-20210625
for you to fetch changes up to f5c6ee0c6b7b4b79b52a1614a808633dbb694de4:
target/mips: Merge msa32/msa64 decodetree definitions (2021-06-24 16:48:08 +0200)
----------------------------------------------------------------
MIPS patches queue
Various fixes:
- Potential integer overflow (CID 1452921)
- Invalid emulation of nanoMIPS BPOSGE32 opcode
- Missing exception when DINSV opcode used with DSP disabled
- Do not abort but emit exception for invalid BRANCH opcodes
- TCG temporary leaks
Housekeeping:
- Remove dead code / comments
- Restrict few files to TCG, declarations to sysemu
- Merge MSA32 and MSA64 decodetree definitions
----------------------------------------------------------------
Aleksandar Rikalo (1):
target/mips: fix emulation of nanoMIPS BPOSGE32 instruction
Philippe Mathieu-Daudé (14):
target/mips: Fix potential integer overflow (CID 1452921) target/mips: Fix TCG temporary leaks in gen_pool32a5_nanomips_insn() target/mips: Fix more TCG temporary leaks in
gen_pool32a5_nanomips_insn
target/mips: Raise exception when DINSV opcode used with DSP disabled target/mips: Do not abort on invalid instruction target/mips: Move TCG trace events to tcg/ sub directory target/mips: Move translate.h to tcg/ sub directory target/mips: Restrict some system specific declarations to sysemu target/mips: Remove SmartMIPS / MDMX unuseful comments target/mips: Remove microMIPS BPOSGE32 / BPOSGE64 unuseful cases target/mips: Constify host_to_mips_errno[]
target/mips: Optimize regnames[] arrays
target/mips: Remove pointless gen_msa()
target/mips: Merge msa32/msa64 decodetree definitions
meson.build | 2 +-
target/mips/cpu.h | 10 ++++--
target/mips/internal.h | 2 +-
target/mips/tcg/trace.h | 1 +
target/mips/{ => tcg}/translate.h | 0
target/mips/trace.h | 1 -
target/mips/tcg/{msa32.decode => msa.decode} | 8 +++--
target/mips/tcg/msa64.decode | 17 ----------
target/mips/cpu.c | 2 +-
target/mips/tcg/msa_translate.c | 23 ++++---------
target/mips/tcg/mxu_translate.c | 4 +--
target/mips/tcg/sysemu/mips-semi.c | 2 +-
target/mips/tcg/sysemu/tlb_helper.c | 3 +-
target/mips/tcg/translate.c | 35 ++++++++------------
target/mips/tcg/meson.build | 3 +-
target/mips/{ => tcg}/trace-events | 0
16 files changed, 42 insertions(+), 71 deletions(-)
create mode 100644 target/mips/tcg/trace.h
rename target/mips/{ => tcg}/translate.h (100%)
delete mode 100644 target/mips/trace.h
rename target/mips/tcg/{msa32.decode => msa.decode} (74%)
delete mode 100644 target/mips/tcg/msa64.decode
rename target/mips/{ => tcg}/trace-events (100%)Signature · 1 line
2.31.1
[PULL 02/15] target/mips: Fix TCG temporary leaks in gen_pool32a5_nanomips_insn()
Fix a pair of TCG temporary leak when translating nanoMIPS SHILO opcode.
Message-Id: <[email protected]>
--- target/mips/tcg/translate.c | 2 ++ 1 file changed, 2 insertions(+)
target/mips/tcg/translate.c +2 -0
@@ -20182,6 +20182,8 @@ static void gen_pool32a5_nanomips_insn(DisasContext *ctx, int opc,tcg_gen_movi_tl (tv0, rd >>3 );tcg_gen_movi_tl (tv1, imm);gen_helper_shilo (tv0, tv1, cpu_env); +tcg_temp_free (tv1); +tcg_temp_free (tv0); }break ;case NM_MULEQ_S_W_PHL :
Signature · 1 line
2.31.1
[PULL 07/15] target/mips: Move translate.h to tcg/ sub directory
In reply to Philippe Mathieu-DaudéWe moved various TCG source files in commit a2b0a27d33e ("target/mips: Move TCG source files under tcg/ sub directory") but forgot to move the header declaring their prototypes. Do it now, since all it declares is TCG specific.
Message-Id: <[email protected]>
---
target/mips/{ => tcg}/translate.h | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename target/mips/{ => tcg}/translate.h (100%)target/mips/tcg/translate.h renamed from target/mips/translate.h +0 -0
Signature · 1 line
2.31.1
[PULL 04/15] target/mips: Raise exception when DINSV opcode used with DSP disabled
In reply to Philippe Mathieu-DaudéPer the "MIPS® DSP Module for MIPS64 Architecture" manual, rev. 3.02, Table 5.3 "SPECIAL3 Encoding of Function Field for DSP Module":
If the Module/ASE is not implemented, executing such an instruction must cause a Reserved Instruction Exception.
The DINSV instruction lists the following exceptions:
- Reserved Instruction
- DSP Disabled
If the MIPS core doesn't support the DSP module, or the DSP is disabled, do not handle the '$rt = $0' case as a no-op but raise the proper exception instead.
Message-Id: <[email protected]>
--- target/mips/tcg/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
target/mips/tcg/translate.c +2 -1
@@ -24379,10 +24379,11 @@ static void decode_opc_special3_legacy(CPUMIPSState *env, DisasContext *ctx) {TCGv t0, t1; +check_dsp (ctx); +if (rt ==0 ) {break ; } -check_dsp (ctx); t0 =tcg_temp_new (); t1 =tcg_temp_new ();
Signature · 1 line
2.31.1
[PULL 11/15] target/mips: fix emulation of nanoMIPS BPOSGE32 instruction
In reply to Philippe Mathieu-DaudéFrom: Aleksandar Rikalo <[email protected]>
Per the "MIPS® Architecture Extension: nanoMIPS32 DSP Technical Reference Manual — Revision 0.04" p. 88 "BPOSGE32C", offset argument (imm) should be left-shifted first.
This change was tested against test_dsp_r1_bposge32.c DSP test.
Message-Id: <VI1PR0302MB34869449EE56F226FC3C21129C309@VI1PR0302MB3486.eurprd03.prod.outlook.com>
--- target/mips/tcg/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/mips/tcg/translate.c +1 -1
@@ -21137,7 +21137,7 @@ static int decode_nanomips_32_48_opc(CPUMIPSState *env, DisasContext *ctx)extract32 (ctx->opcode,0 ,1 ) <<13 ;gen_compute_branch_nm (ctx,OPC_BPOSGE32 ,4 ,-1 ,-2 , - imm); + imm <<1 ); }break ;default :
Signature · 1 line
2.31.1
[PULL 13/15] target/mips: Optimize regnames[] arrays
In reply to Philippe Mathieu-DaudéSince all entries are no more than 3/4/6 bytes (including nul terminator), can save space and pie runtime relocations by declaring regnames[] as array of 3/4/6 const char.
Message-Id: <[email protected]>
--- target/mips/internal.h | 2 +- target/mips/cpu.c | 2 +- target/mips/tcg/msa_translate.c | 2 +- target/mips/tcg/mxu_translate.c | 4 ++-- target/mips/tcg/translate.c | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-)
target/mips/internal.h +1 -1
@@ -74,7 +74,7 @@ struct mips_def_t {int32_t SAARP ; }; -extern const char regnames[32 ][4 ]; +extern const char regnames[32 ][3 ];extern const char fregnames[32 ][4 ];extern const struct mips_def_t mips_defs[];
target/mips/cpu.c +1 -1
@@ -35,7 +35,7 @@#include "qapi/qapi-commands-machine-target.h" #include "fpu_helper.h" -const char regnames[32 ][4 ] = { +const char regnames[32 ][3 ] = {"r0" ,"at" ,"v0" ,"v1" ,"a0" ,"a1" ,"a2" ,"a3" ,"t0" ,"t1" ,"t2" ,"t3" ,"t4" ,"t5" ,"t6" ,"t7" ,"s0" ,"s1" ,"s2" ,"s3" ,"s4" ,"s5" ,"s6" ,"s7" ,
target/mips/tcg/msa_translate.c +1 -1
@@ -255,7 +255,7 @@ enum { OPC_BINSRI_df = (0x7 << 23) | OPC_MSA_BIT_09, }; -static const char *const msaregnames[] = { +static const char msaregnames[][6 ] = {"w0.d0" ,"w0.d1" ,"w1.d0" ,"w1.d1" ,"w2.d0" ,"w2.d1" ,"w3.d0" ,"w3.d1" ,"w4.d0" ,"w4.d1" ,"w5.d0" ,"w5.d1" ,
target/mips/tcg/mxu_translate.c +2 -2
@@ -447,9 +447,9 @@ enum {static TCGv mxu_gpr[NUMBER_OF_MXU_REGISTERS -1 ];static TCGv mxu_CR; -static const char *const mxuregnames[] = { +static const char mxuregnames[][4 ] = {"XR1" ,"XR2" ,"XR3" ,"XR4" ,"XR5" ,"XR6" ,"XR7" ,"XR8" , -"XR9" ,"XR10" ,"XR11" ,"XR12" ,"XR13" ,"XR14" ,"XR15" ,"MXU_CR" , +"XR9" ,"XR10" ,"XR11" ,"XR12" ,"XR13" ,"XR14" ,"XR15" ,"XCR" , };void mxu_translate_init (void )
target/mips/tcg/translate.c +2 -2
@@ -1280,11 +1280,11 @@ TCGv_i64 fpu_f64[32];#define DISAS_STOP DISAS_TARGET_0#define DISAS_EXIT DISAS_TARGET_1 -static const char *const regnames_HI[] = { +static const char regnames_HI[][4 ] = {"HI0" ,"HI1" ,"HI2" ,"HI3" , }; -static const char *const regnames_LO[] = { +static const char regnames_LO[][4 ] = {"LO0" ,"LO1" ,"LO2" ,"LO3" , };
Signature · 1 line
2.31.1
[PULL 12/15] target/mips: Constify host_to_mips_errno[]
In reply to Philippe Mathieu-DaudéKeep host_to_mips_errno[] in .rodata by marking the array const.
Message-Id: <[email protected]>
--- target/mips/tcg/sysemu/mips-semi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
target/mips/tcg/sysemu/mips-semi.c +1 -1
@@ -75,7 +75,7 @@ enum UHIOpenFlags { };/* Errno values taken from asm-mips/errno.h */ -static uint16_t host_to_mips_errno[] = { +static const uint16_t host_to_mips_errno[] = { [ENAMETOOLONG ] =78 , #ifdef EOVERFLOW [EOVERFLOW] = 79,
Signature · 1 line
2.31.1
[PULL 14/15] target/mips: Remove pointless gen_msa()
In reply to Philippe Mathieu-DaudéOnly trans_MSA() calls gen_msa(), inline it to simplify.
Message-Id: <[email protected]>
--- target/mips/tcg/msa_translate.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
target/mips/tcg/msa_translate.c +1 -6
@@ -2162,7 +2162,7 @@ static void gen_msa_vec(DisasContext *ctx) } } -static void gen_msa (DisasContext *ctx) +static bool trans_MSA (DisasContext *ctx,arg_MSA *a) {uint32_t opcode = ctx->opcode;
@@ -2258,11 +2258,6 @@ static void gen_msa(DisasContext *ctx)gen_reserved_instruction (ctx);break ; } -} - -static bool trans_MSA (DisasContext *ctx,arg_MSA *a) -{ -gen_msa (ctx);return true; }
Signature · 1 line
2.31.1
[PULL 15/15] target/mips: Merge msa32/msa64 decodetree definitions
In reply to Philippe Mathieu-DaudéWe don't need to maintain 2 sets of decodetree definitions. Merge them into a single file.
Message-Id: <[email protected]>
---
target/mips/tcg/{msa32.decode => msa.decode} | 8 +++++---
target/mips/tcg/msa64.decode | 17 -----------------
target/mips/tcg/msa_translate.c | 14 ++++----------
target/mips/tcg/meson.build | 3 +--
4 files changed, 10 insertions(+), 32 deletions(-)
rename target/mips/tcg/{msa32.decode => msa.decode} (74%)
delete mode 100644 target/mips/tcg/msa64.decodetarget/mips/tcg/msa.decode renamed from target/mips/tcg/msa32.decode +5 -3
@@ -6,9 +6,10 @@ # # Reference: # MIPS Architecture for Programmers Volume IV-j -# The MIPS32 SIMD Architecture Module, Revision 1.12 -# (Document Number: MD00866-2B-MSA32-AFP-01.12) -# +# - The MIPS32 SIMD Architecture Module, Revision 1.12 +# (Document Number: MD00866-2B-MSA32-AFP-01.12) +# - The MIPS64 SIMD Architecture Module, Revision 1.12 +# (Document Number: MD00868-1D-MSA64-AFP-01.12) &rtype rs rt rd sa
@@ -19,6 +20,7 @@ @bz_df ...... ... df:2 wt:5 s16:16 &msa_bz LSA 000000 ..... ..... ..... 000 .. 000101 @lsa +DLSA 000000 ..... ..... ..... 000 .. 010101 @lsa BZ_V 010001 01011 ..... ................ @bz BNZ_V 010001 01111 ..... ................ @bz
target/mips/tcg/msa64.decode deleted +0 -17
@@ -1,17 +0,0 @@ -# MIPS SIMD Architecture Module instruction set -# -# Copyright (C) 2020 Philippe Mathieu-Daudé -# -# SPDX-License-Identifier: LGPL-2.1-or-later -# -# Reference: -# MIPS Architecture for Programmers Volume IV-j -# The MIPS64 SIMD Architecture Module, Revision 1.12 -# (Document Number: MD00868-1D-MSA64-AFP-01.12) -# - -&rtype rs rt rd sa !extern - -@lsa ...... rs:5 rt:5 rd:5 ... sa:2 ...... &rtype - -DLSA 000000 ..... ..... ..... 000 .. 010101 @lsa
target/mips/tcg/msa_translate.c +4 -10
@@ -18,8 +18,7 @@#include "internal.h" /* Include the auto-generated decoder. */ -#include "decode-msa32.c.inc" -#include "decode-msa64.c.inc" +#include "decode-msa.c.inc" #define OPC_MSA (0x1E << 26)
@@ -2269,13 +2268,8 @@ static bool trans_LSA(DisasContext *ctx, arg_rtype *a)static bool trans_DLSA (DisasContext *ctx,arg_rtype *a) { +if (TARGET_LONG_BITS !=64 ) { +return false; + }return gen_dlsa (ctx, a->rd, a->rt, a->rs, a->sa); } - -bool decode_ase_msa (DisasContext *ctx,uint32_t insn) -{ -if (TARGET_LONG_BITS ==64 &&decode_msa64 (ctx, insn)) { -return true; - } -return decode_msa32 (ctx, insn); -}
target/mips/tcg/meson.build +1 -2
@@ -1,8 +1,7 @@ gen = [ decodetree.process('mips32r6.decode', extra_args: '--static-decode=decode_mips32r6'), decodetree.process('mips64r6.decode', extra_args: '--static-decode=decode_mips64r6'), - decodetree.process('msa32.decode', extra_args: '--static-decode=decode_msa32'), - decodetree.process('msa64.decode', extra_args: '--static-decode=decode_msa64'), + decodetree.process('msa.decode', extra_args: '--decode=decode_ase_msa'), decodetree.process('tx79.decode', extra_args: '--static-decode=decode_tx79'), ]
Signature · 1 line
2.31.1
[PULL 01/15] target/mips: Fix potential integer overflow (CID 1452921)
In reply to Philippe Mathieu-DaudéUse the BIT_ULL() macro to ensure we use 64-bit arithmetic. This fixes the following Coverity issue (OVERFLOW_BEFORE_WIDEN):
CID 1452921: Integer handling issues:
Potentially overflowing expression "1 << w" with type "int" (32 bits, signed) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type "uint64_t" (64 bits, unsigned).
Message-Id: <[email protected]>
--- target/mips/tcg/sysemu/tlb_helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
target/mips/tcg/sysemu/tlb_helper.c +2 -1
@@ -17,6 +17,7 @@* License along with this library; if not, see <http://www.gnu.org/licenses/>. */ #include "qemu/osdep.h" +#include "qemu/bitops.h" #include "cpu.h" #include "internal.h"
@@ -659,7 +660,7 @@ static int walk_directory(CPUMIPSState *env, uint64_t *vaddr, w = directory_index -1 ;if (directory_index &0x1 ) {/* Generate adjacent page from same PTE for odd TLB page */ - lsb = (1 << w) >>6 ; + lsb =BIT_ULL (w) >>6 ; *pw_entrylo0 = entry & ~lsb;/* even page */ *pw_entrylo1 = entry | lsb;/* odd page */ }else if (dph) {
Signature · 1 line
2.31.1
[PULL 03/15] target/mips: Fix more TCG temporary leaks in gen_pool32a5_nanomips_insn
In reply to Philippe Mathieu-DaudéFix multiple TCG temporary leaks in gen_pool32a5_nanomips_insn().
Message-Id: <[email protected]>
--- target/mips/tcg/translate.c | 4 ++++ 1 file changed, 4 insertions(+)
target/mips/tcg/translate.c +4 -0
@@ -20298,6 +20298,10 @@ static void gen_pool32a5_nanomips_insn(DisasContext *ctx, int opc,gen_reserved_instruction (ctx);break ; } + +tcg_temp_free (v2_t); +tcg_temp_free (v1_t); +tcg_temp_free (t0); }static int decode_nanomips_32_48_opc (CPUMIPSState *env,DisasContext *ctx)
Signature · 1 line
2.31.1
[PULL 06/15] target/mips: Move TCG trace events to tcg/ sub directory
In reply to Philippe Mathieu-DaudéCommit a2b0a27d33e ("target/mips: Move TCG source files under tcg/ sub directory") forgot to move the trace-event file. As it only contains TCG events, move it for consistency.
Message-Id: <[email protected]>
---
meson.build | 2 +-
target/mips/tcg/trace.h | 1 +
target/mips/trace.h | 1 -
target/mips/tcg/translate.c | 2 +-
target/mips/{ => tcg}/trace-events | 0
5 files changed, 3 insertions(+), 3 deletions(-)
create mode 100644 target/mips/tcg/trace.h
delete mode 100644 target/mips/trace.h
rename target/mips/{ => tcg}/trace-events (100%)meson.build +1 -1
@@ -1882,7 +1882,7 @@ 'target/hppa', 'target/i386', 'target/i386/kvm', - 'target/mips', + 'target/mips/tcg', 'target/ppc', 'target/riscv', 'target/s390x',
target/mips/tcg/trace.h new file +1 -0
@@ -0,0 +1 @@ +#include "trace/trace-target_mips_tcg.h"
target/mips/trace.h deleted +0 -1
@@ -1 +0,0 @@ -#include "trace/trace-target_mips.h"
target/mips/tcg/translate.c +1 -1
@@ -31,7 +31,7 @@#include "exec/helper-gen.h" #include "semihosting/semihost.h" -#include "target/mips/trace.h" +#include "trace.h" #include "trace-tcg.h" #include "exec/translator.h" #include "exec/log.h"
target/mips/tcg/trace-events renamed from target/mips/trace-events +0 -0
Signature · 1 line
2.31.1
[PULL 08/15] target/mips: Restrict some system specific declarations to sysemu
In reply to Philippe Mathieu-DaudéCommit 043715d1e0f ("target/mips: Update ITU to utilize SAARI and SAAR CP0 registers") declared itc_reconfigure() in public namespace, while it is restricted to system emulation.
Similarly commit 5679479b9a1 ("target/mips: Move CP0 helpers to sysemu/cp0.c") restricted cpu_mips_soft_irq() definition to system emulation, but forgot to restrict its declaration.
To avoid polluting user-mode emulation with these declarations, restrict them to sysemu. Also restrict the sysemu ITU/ITC/IRQ fields from CPUMIPSState.
Message-Id: <[email protected]>
--- target/mips/cpu.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
target/mips/cpu.h +7 -3
@@ -1152,13 +1152,13 @@ struct CPUMIPSState {CPUMIPSMVPContext *mvp;#if !defined(CONFIG_USER_ONLY )CPUMIPSTLBContext *tlb; +void *irq[8 ]; +struct MIPSITUState *itu; +MemoryRegion *itc_tag;/* ITC Configuration Tags */ #endif const mips_def_t *cpu_model; -void *irq[8 ];QEMUTimer *timer;/* Internal timer */ -struct MIPSITUState *itu; -MemoryRegion *itc_tag;/* ITC Configuration Tags */ target_ulong exception_base;/* ExceptionBase input to the core */ uint64_t cp0_count_ns;/* CP0_Count clock period (in nanoseconds) */ };
@@ -1316,12 +1316,16 @@ uint64_t cpu_mips_phys_to_kseg1(void *opaque, uint64_t addr);bool mips_um_ksegs_enabled (void );void mips_um_ksegs_enable (void ); +#if !defined(CONFIG_USER_ONLY ) +/* mips_int.c */ void cpu_mips_soft_irq (CPUMIPSState *env,int irq,int level);/* mips_itu.c */ void itc_reconfigure (struct MIPSITUState *tag); +#endif /* !CONFIG_USER_ONLY */ +/* helper.c */ target_ulong exception_resume_pc (CPUMIPSState *env);
Signature · 1 line
2.31.1
[PULL 05/15] target/mips: Do not abort on invalid instruction
In reply to Philippe Mathieu-DaudéOn real hardware an invalid instruction doesn't halt the world, but usually triggers a RESERVED INSTRUCTION exception. TCG guest code shouldn't abort QEMU anyway.
Message-Id: <[email protected]>
--- target/mips/tcg/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
target/mips/tcg/translate.c +2 -2
@@ -12151,8 +12151,8 @@ static void gen_branch(DisasContext *ctx, int insn_bytes)tcg_gen_lookup_and_goto_ptr ();break ;default : -fprintf (stderr,"unknown branch 0x%x\n" , proc_hflags); -abort (); +LOG_DISAS ("unknown branch 0x%x\n" , proc_hflags); +gen_reserved_instruction (ctx); } } }
Signature · 1 line
2.31.1
[PULL 09/15] target/mips: Remove SmartMIPS / MDMX unuseful comments
In reply to Philippe Mathieu-DaudéThese placeholder comments for SmartMIPS and MDMX extensions have been added commit 3c824109da0 ("target-mips: microMIPS ASE support"). More than 11 years later it is safe to assume there won't be added soon, so remove these unuseful comments.
Message-Id: <[email protected]>
--- target/mips/tcg/translate.c | 8 -------- 1 file changed, 8 deletions(-)
target/mips/tcg/translate.c +0 -8
@@ -21578,14 +21578,6 @@ static int decode_nanomips_opc(CPUMIPSState *env, DisasContext *ctx) } -/* SmartMIPS extension to MIPS32 */ - -#if defined(TARGET_MIPS64 ) - -/* MDMX extension to MIPS64 */ - -#endif -/* MIPSDSP functions. */ static void gen_mipsdsp_ld (DisasContext *ctx,uint32_t opc,int rd,int base,int offset)
Signature · 1 line
2.31.1
[PULL 10/15] target/mips: Remove microMIPS BPOSGE32 / BPOSGE64 unuseful cases
In reply to Philippe Mathieu-DaudéThese switch cases for the microMIPS BPOSGE32 / BPOSGE64 opcodes have been added commit 3c824109da0 ("target-mips: microMIPS ASE support"). More than 11 years later it is safe to assume there won't be added soon. The cases fall back to the default which generates a RESERVED INSTRUCTION, so it is safe to remove them.
Functionally speaking, the patch is a no-op.
Message-Id: <[email protected]>
--- target/mips/tcg/translate.c | 6 ------ 1 file changed, 6 deletions(-)
target/mips/tcg/translate.c +0 -6
@@ -14076,8 +14076,6 @@ enum {BGEZALS =0x13 ,BC2F =0x14 ,BC2T =0x15 , -BPOSGE64 =0x1a , -BPOSGE32 =0x1b ,/* These overlap and are distinguished by bit16 of the instruction */ BC1F =0x1c , BC1T = 0x1d,
@@ -16121,10 +16119,6 @@ static void decode_micromips32_opc(CPUMIPSState *env, DisasContext *ctx)generate_exception_err (ctx, EXCP_CpU,1 ); }break ; -case BPOSGE64 : -case BPOSGE32 : -/* MIPS DSP: not implemented */ -/* Fall through */ default :MIPS_INVAL ("pool32i" );gen_reserved_instruction (ctx);
Signature · 1 line
2.31.1
Peter Maydell
AppliedQuoted 27 lines · Philippe Mathieu-Daudé
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bitThe following changes since commit
d0ac9a61474cf594d19082bc8976247e984ea9a3:Merge remote-tracking branch 'remotes/thuth-gitlab/tags/pull-request-2021-06-21' into staging (2021-06-24 09:31:26 +0100)
are available in the Git repository at:
https://github.com/philmd/qemu.git tags/mips-20210625
for you to fetch changes up to
f5c6ee0c6b7b4b79b52a1614a808633dbb694de4:target/mips: Merge msa32/msa64 decodetree definitions (2021-06-24 16:48:08 +0200)
----------------------------------------------------------------
MIPS patches queueVarious fixes:
- Potential integer overflow (CID 1452921)
- Invalid emulation of nanoMIPS BPOSGE32 opcode
- Missing exception when DINSV opcode used with DSP disabled
- Do not abort but emit exception for invalid BRANCH opcodes
- TCG temporary leaks
Quoted 5 lines
Housekeeping:
- Remove dead code / comments
- Restrict few files to TCG, declarations to sysemu
- Merge MSA32 and MSA64 decodetree definitions
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/6.1
for any user-visible changes.
-- PMM