mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
microblaze: Compute masks for alignment checks at translation time.
Thanks to Blue Swirl for reporting. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
faed1c2a23
commit
3aa8098843
2 changed files with 6 additions and 15 deletions
|
@ -814,7 +814,7 @@ static void dec_load(DisasContext *dc)
|
|||
/* Verify alignment if needed. */
|
||||
if ((dc->env->pvr.regs[2] & PVR2_UNALIGNED_EXC_MASK) && size > 1) {
|
||||
gen_helper_memalign(*addr, tcg_const_tl(dc->rd),
|
||||
tcg_const_tl(0), tcg_const_tl(size));
|
||||
tcg_const_tl(0), tcg_const_tl(size - 1));
|
||||
}
|
||||
|
||||
if (dc->rd) {
|
||||
|
@ -858,7 +858,7 @@ static void dec_store(DisasContext *dc)
|
|||
/* Verify alignment if needed. */
|
||||
if ((dc->env->pvr.regs[2] & PVR2_UNALIGNED_EXC_MASK) && size > 1) {
|
||||
gen_helper_memalign(*addr, tcg_const_tl(dc->rd),
|
||||
tcg_const_tl(1), tcg_const_tl(size));
|
||||
tcg_const_tl(1), tcg_const_tl(size - 1));
|
||||
}
|
||||
|
||||
gen_store(dc, *addr, cpu_R[dc->rd], size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue