Skip to contentSkip to conversation

target mips: Misc fixes and improvements

PATCH Superseded Aleksandar Markovic 1 participant 3 messages Jun 30, 2020

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover target mips: Misc fixes and improvements

A collection of pendind fixes and improvements.

Aleksandar Markovic (2):
target/mips: Remove identical if/else branches
MAINTAINERS: Adjust MIPS maintainership

 MAINTAINERS              | 10 +++++-----
 target/mips/cp0_helper.c |  9 +--------
 2 files changed, 6 insertions(+), 13 deletions(-)
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/2 target/mips: Remove identical if/else branches

Remove the segment:

      if (other_tc == other->current_tc) {
          tccause = other->CP0_Cause;
      } else {
          tccause = other->CP0_Cause;
      }

Original contributor can't remember what was his intention.

---
 target/mips/cp0_helper.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
target/mips/cp0_helper.c +1 -8
index bbf12e4a97..de64add038 100644
@@ -375,16 +375,9 @@ target_ulong helper_mftc0_entryhi(CPUMIPSState *env)
 target_ulong helper_mftc0_cause(CPUMIPSState *env)
 {
     int other_tc = env->CP0_VPEControl & (0xff << CP0VPECo_TargTC);
-    int32_t tccause;
     CPUMIPSState *other = mips_cpu_map_tc(env, &other_tc);
 
-    if (other_tc == other->current_tc) {
-        tccause = other->CP0_Cause;
-    } else {
-        tccause = other->CP0_Cause;
-    }
-
-    return tccause;
+    return other->CP0_Cause;
 }
 
 target_ulong helper_mftc0_status(CPUMIPSState *env)
Signature · 1 line
2.20.1
#2 lore raw

PATCH 2/2 MAINTAINERS: Adjust MIPS maintainership

In reply to Aleksandar Markovic

Paul Burton and Aurelien Jarno removed for not being present.

Huacai Chen and Jiaxun Yang step in as reinforcement.

CC Paul Burton <[email protected]>
CC Aurelien Jarno <[email protected]>
---
 MAINTAINERS | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
MAINTAINERS +5 -5
index 5d8acf8d31..908431580c 100644
@@ -213,7 +213,8 @@ F: disas/microblaze.c
 
 MIPS TCG CPUs
 M: Aleksandar Markovic <[email protected]>
-R: Aurelien Jarno <[email protected]>
+M: Huacai Chen <[email protected]>
+R: Jiaxun Yang <[email protected]>
 R: Aleksandar Rikalo <[email protected]>
 S: Maintained
 F: target/mips/
@@ -1061,7 +1062,6 @@ F: hw/dma/rc4030.c
 Malta
 M: Aleksandar Markovic <[email protected]>
 M: Philippe Mathieu-Daudé <[email protected]>
-R: Aurelien Jarno <[email protected]>
 S: Maintained
 F: hw/isa/piix4.c
 F: hw/acpi/piix4.c
@@ -1080,7 +1080,6 @@ F: hw/net/mipsnet.c
 
 R4000
 M: Aleksandar Markovic <[email protected]>
-R: Aurelien Jarno <[email protected]>
 R: Aleksandar Rikalo <[email protected]>
 S: Obsolete
 F: hw/mips/r4k.c
@@ -1103,7 +1102,7 @@ S: Maintained
 F: hw/intc/loongson_liointc.c
 
 Boston
-M: Paul Burton <[email protected]>
+M: Aleksandar Markovic <[email protected]>
 R: Aleksandar Rikalo <[email protected]>
 S: Maintained
 F: hw/core/loader-fit.c
@@ -2677,7 +2676,8 @@ F: disas/i386.c
 
 MIPS TCG target
 M: Aleksandar Markovic <[email protected]>
-R: Aurelien Jarno <[email protected]>
+M: Huacai Chen <[email protected]>
+R: Jiaxun Yang <[email protected]>
 R: Aleksandar Rikalo <[email protected]>
 S: Maintained
 F: tcg/mips/
Signature · 1 line
2.20.1