Skip to content

target-mips: optimizations

Aurelien Jarno qemu-devel 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 0 repliesNew
  2. v111 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11target-mips: optimize gen_save_pc()target-mips/translate.c+1 -50 replies
2/11target-mips: optimize gen_op_addr_add() (1/2)target-mips/translate.c+7 -100 replies
3/11target-mips: optimize gen_op_addr_add() (2/2)target-mips/cpu.h target-mips/exec.h target-mips/translate.c+13 -160 replies
4/11target-mips: convert bitfield ops to TCGtarget-mips/helper.h target-mips/op_helper.c target-mips/translate.c+41 -460 replies
5/11target-mips: convert bit shuffle ops to TCGtarget-mips/helper.h target-mips/op_helper.c target-mips/translate.c+56 -760 replies
6/11target-mips: optimize gen_arith()/gen_arith_imm()target-mips/translate.c+32 -460 replies
7/11target-mips: optimize gen_muldiv()target-mips/translate.c+47 -1150 replies
8/11target-mips: optimize gen_farith()target-mips/translate.c+12 -120 replies
9/11target-mips: optimize movc*()target-mips/translate.c+33 -480 replies
10/11target-mips: gen_compute_branch1()target-mips/translate.c+41 -810 replies
11/11target-mips: fix temporary variable freeing in op_ldst_##insn()target-mips/translate.c+1 -10 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/11] target-mips: optimizations

Hi,

This is version 2 of the series which includes:
- Changes suggested by Laurent Desnogues.
- Correctly free tmp variables

Aurelien

----

This series optimize the MIPS emulation, and more precisely the 64-bit emulation as shown the table below. All the tests have been done on an x86-64 host. The 32-bit task corresponds to compilation of C++ code using a 32-bit userland. The times are given is seconds.

                     +---------------------+---------------------+
                     |      Boot time      |     32-bit task     |
                     +----------+----------+----------+----------+
          	     | Original |  Patched | Original |  Patched |
+--------------------+----------+----------+----------+----------+
| qemu-system-mips32 |     33   |     33   |    131   |    131   |
|                    |          |          |          |          |
+--------------------+----------+----------+----------+----------+
| qemu-system-mips64 |     53   |     33   |    303   |    138   |
|  + 32-bit kernel   |          |          |          |          |
+--------------------+----------+----------+----------+----------+
| qemu-system-mips64 |     47   |     31   |    231   |    107   |
|  + 64-bit kernel   |          |          |          |          |
+--------------------+----------+----------+----------+----------+

With this series, there is now very few overheads running a 32-bit system in qemu-system-mips64, and a gain when switching to a 64-bit kernel. This is probably not true on a 32-bit host.

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net