diff options
| author | Aurelien Jarno | 2015-07-15 17:05:09 +0200 |
|---|---|---|
| committer | Leon Alrae | 2015-08-13 17:22:52 +0200 |
| commit | eb02cc3f89013612cb05df23b5441741e902bbd2 (patch) | |
| tree | 3c520356c13e7cc307cb77db087d1bc795fb8b5a /tests/qapi-schema | |
| parent | target-mips: update mips32r5-generic into P5600 (diff) | |
| download | qemu-eb02cc3f89013612cb05df23b5441741e902bbd2.tar.gz qemu-eb02cc3f89013612cb05df23b5441741e902bbd2.tar.xz qemu-eb02cc3f89013612cb05df23b5441741e902bbd2.zip | |
target-mips: simplify LWL/LDL mask generation
The LWL/LDL instructions mask the GPR with a mask depending on the
address alignement. It is currently computed by doing:
mask = 0x7fffffffffffffffull >> (t1 ^ 63)
It's simpler to generate it by doing:
mask = ~(-1 << t1)
It uses one TCG instruction less, and it avoids a 32/64-bit constant
loading which can take a few instructions on RISC hosts.
Cc: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Diffstat (limited to 'tests/qapi-schema')
0 files changed, 0 insertions, 0 deletions
