Skip to content

MIPS(EL) host support

Aurelien Jarno qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5linux-user: remove hardcoded value of _NSIG in signal.clinux-user/signal.c+6 -62 replies
2/5cpu-all.h: fix cpu_get_real_ticks on mips hostcpu-all.h+18 -90 replies
3/5tcg: initial mips supportconfigure tcg/mips/tcg-target.c tcg/mips/tcg-target.h+1576 -10 replies
4/5tcg: increase TCG_MAX_OP_SIZE to 192exec-all.h+3 -30 replies
5/5tcg/mips: use direct jumpsexec-all.h exec.c tcg/mips/tcg-target.c +1 more+21 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/5] MIPS(EL) host support

This patch series add host MIPS(EL) support to QEMU. It is based on the excellent work from Arnaud Patard [1].

It supports both little and big-endian hosts, and is currently limited to the o32 abi. It has been mainly developped and tested in system mode on a MIPSEL host, but I have verified that both MIPS and MIPSEL hosts can boot Debian Installer amd64, arm, i386, mips, mipsel, ppc and sparc, and can also boot an SH4 kernel. On the user side, I have verified that basic support (aka starting libc.so.6) works, but there is probably some more work to do on this side.

I have mainly focused on getting host support fully working, and haven't written "aggressively" optimised code. There is still space for speed improvement, for example by filling the delay slots or using MIPS R2 instructions (if available) for byte swapping, rotations or bit field insertion/extraction (useful for the memory load/store).

[1] http://git.rtp-net.org/?p=qemu.git;a=summary

Arnaud Patard (2):
linux-user: remove hardcoded value of _NSIG in signal.c cpu-all.h: fix cpu_get_real_ticks on mips host

Aurelien Jarno (3):
tcg: initial mips support
tcg: increase TCG_MAX_OP_SIZE to 192
tcg/mips: use direct jumps

 configure             |    7 +-
 cpu-all.h             |   27 +-
 exec-all.h            |   19 +-
 exec.c                |    7 +
 linux-user/signal.c   |   12 +-
 tcg/mips/tcg-target.c | 1464 +++++++++++++++++++++++++++++++++++++++++++++++++
 tcg/mips/tcg-target.h |  102 ++++
 7 files changed, 1618 insertions(+), 20 deletions(-)
 create mode 100644 tcg/mips/tcg-target.c
 create mode 100644 tcg/mips/tcg-target.h