target-sparc: Fix obvious error in ASI_M_BFILL

Backports commit c095b83f9836cef80f64b32603fea240762a824b from qemu
This commit is contained in:
Richard Henderson 2018-02-25 18:08:37 -05:00 committed by Lioncash
parent eb285aa281
commit 950aa89c7a
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -944,7 +944,7 @@ void helper_st_asi(CPUSPARCState *env, target_ulong addr, uint64_t val, int asi,
/* addr = dst
fill 32 bytes with val */
unsigned int i;
uint32_t dst = addr & 7;
uint32_t dst = addr & ~7;
for (i = 0; i < 32; i += 8, dst += 8) {
cpu_stq_kernel(env, dst, val);