Skip to content

Commit

Permalink
target-sparc: Fix obvious error in ASI_M_BFILL
Browse files Browse the repository at this point in the history
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Richard Henderson <rth@twiddle.net>
  • Loading branch information
rth7680 committed Jul 12, 2016
1 parent e4dc005 commit c095b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target-sparc/ldst_helper.c
Expand Up @@ -989,7 +989,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);
Expand Down

0 comments on commit c095b83

Please sign in to comment.