Skip to content

Commit f1d5948

Browse files
committed
Merge remote-tracking branch 'remotes/philmd-gitlab/tags/mips-next-20200714' into staging
MIPS patches for 5.1 - A pair of fixes, - Add Huacai Chen as MIPS KVM maintainer, - Add Jiaxun Yang as designated MIPS TCG reviewer. CI jobs results: . https://travis-ci.org/github/philmd/qemu/builds/708079271 . https://gitlab.com/philmd/qemu/-/pipelines/166528104 . https://cirrus-ci.com/build/6483996878045184 # gpg: Signature made Tue 14 Jul 2020 20:59:58 BST # gpg: using RSA key FAABE75E12917221DCFD6BB2E3E32C2CDEADC0DE # gpg: Good signature from "Philippe Mathieu-Daudé (F4BUG) <[email protected]>" [full] # Primary key fingerprint: FAAB E75E 1291 7221 DCFD 6BB2 E3E3 2C2C DEAD C0DE * remotes/philmd-gitlab/tags/mips-next-20200714: MAINTAINERS: Adjust MIPS maintainership (add Huacai Chen & Jiaxun Yang) target/mips: Fix ADD.S FPU instruction target/mips: Remove identical if/else branches Signed-off-by: Peter Maydell <[email protected]>
2 parents 6732053 + 15d983d commit f1d5948

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

MAINTAINERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ F: disas/microblaze.c
222222
MIPS TCG CPUs
223223
M: Aleksandar Markovic <[email protected]>
224224
R: Aurelien Jarno <[email protected]>
225+
R: Jiaxun Yang <[email protected]>
225226
R: Aleksandar Rikalo <[email protected]>
226227
S: Maintained
227228
F: target/mips/
@@ -384,6 +385,7 @@ S: Maintained
384385
F: target/arm/kvm.c
385386

386387
MIPS KVM CPUs
388+
M: Huacai Chen <[email protected]>
387389
M: Aleksandar Markovic <[email protected]>
388390
S: Odd Fixes
389391
F: target/mips/kvm.c
@@ -2751,6 +2753,8 @@ F: disas/i386.c
27512753
MIPS TCG target
27522754
M: Aleksandar Markovic <[email protected]>
27532755
R: Aurelien Jarno <[email protected]>
2756+
R: Huacai Chen <[email protected]>
2757+
R: Jiaxun Yang <[email protected]>
27542758
R: Aleksandar Rikalo <[email protected]>
27552759
S: Maintained
27562760
F: tcg/mips/

target/mips/cp0_helper.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -375,16 +375,9 @@ target_ulong helper_mftc0_entryhi(CPUMIPSState *env)
375375
target_ulong helper_mftc0_cause(CPUMIPSState *env)
376376
{
377377
int other_tc = env->CP0_VPEControl & (0xff << CP0VPECo_TargTC);
378-
int32_t tccause;
379378
CPUMIPSState *other = mips_cpu_map_tc(env, &other_tc);
380379

381-
if (other_tc == other->current_tc) {
382-
tccause = other->CP0_Cause;
383-
} else {
384-
tccause = other->CP0_Cause;
385-
}
386-
387-
return tccause;
380+
return other->CP0_Cause;
388381
}
389382

390383
target_ulong helper_mftc0_status(CPUMIPSState *env)

target/mips/fpu_helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ uint32_t helper_float_add_s(CPUMIPSState *env,
12211221
{
12221222
uint32_t wt2;
12231223

1224-
wt2 = float32_sub(fst0, fst1, &env->active_fpu.fp_status);
1224+
wt2 = float32_add(fst0, fst1, &env->active_fpu.fp_status);
12251225
update_fcr31(env, GETPC());
12261226
return wt2;
12271227
}

0 commit comments

Comments
 (0)