diff options
author | Claudio Fontana <claudio.fontana@huawei.com> | 2013-10-11 16:48:50 +0200 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-04-25 13:19:57 +0100 |
commit | bce02cf0735f6ac2f94399d8c570a1a0fca053f7 (patch) | |
tree | 9cc48a83dd18c54f057da563c20655553ad0736e /risugen | |
parent | d624ee0882543d00c85d91161e94dce8b855b319 (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-x | risugen | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |