aboutsummaryrefslogtreecommitdiff
path: root/risugen
diff options
context:
space:
mode:
authorClaudio Fontana <claudio.fontana@huawei.com>2013-10-11 16:48:50 +0200
committerPeter Maydell <peter.maydell@linaro.org>2014-04-25 13:19:57 +0100
commitbce02cf0735f6ac2f94399d8c570a1a0fca053f7 (patch)
tree9cc48a83dd18c54f057da563c20655553ad0736e /risugen
parentd624ee0882543d00c85d91161e94dce8b855b319 (diff)
aarch64.risu: add support for pre/post idx unscaled ldr/str
addressing using pre-index / post-index and normal unscaled offset only differ in encoding by a two bit-field. Also there is no pre-index / post-index version of prefetch mem. Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>
Diffstat (limited to 'risugen')
-rwxr-xr-xrisugen4
1 files changed, 4 insertions, 0 deletions
diff --git a/risugen b/risugen
index a303f39..83dd5ec 100755
--- a/risugen
+++ b/risugen
@@ -635,6 +635,10 @@ sub reg_plus_imm($$@)
{
# Handle reg + immediate addressing mode
my ($base, $imm, @trashed) = @_;
+ if ($imm == 0) {
+ return reg($base, @trashed);
+ }
+
write_get_offset();
# Now r0 is the address we want to do the access to,
# so set the basereg by doing the inverse of the