diff options
| author | Petar Jovanovic | 2013-07-29 04:06:12 +0200 |
|---|---|---|
| committer | Aurelien Jarno | 2013-07-29 07:48:17 +0200 |
| commit | b6a9f4682e62c686995cc1a1fe2ef4a57a92020b (patch) | |
| tree | 6f11a2a886c713b4c84180404d3f468d3051c0a4 /include/exec | |
| parent | mips_malta: fix copy of the 0x1fc00000 region (diff) | |
| download | qemu-b6a9f4682e62c686995cc1a1fe2ef4a57a92020b.tar.gz qemu-b6a9f4682e62c686995cc1a1fe2ef4a57a92020b.tar.xz qemu-b6a9f4682e62c686995cc1a1fe2ef4a57a92020b.zip | |
target-mips: fix mipsdsp_mul_q31_q31
Multiplication of two fractional word elements is not correct when sign
extension/promotion is needed. This change fixes it by adding correct
casts from unsigned to signed values.
In addition, the tests (dpaq_sa_l_w.c and dpsq_sa_l_w.c) have been extended
to trigger the current issue.
Signed-off-by: Petar Jovanovic <petar.jovanovic@imgtec.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
