translate.c (46174e140d274385b1255bc7f16a5a711853053f) translate.c (c3ea1996a14d5dbbedb3f9036f7ebec4395dc889)
1/*
2 * HPPA emulation cpu translation for qemu.
3 *
4 * Copyright (c) 2016 Richard Henderson <rth@twiddle.net>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 3121 unchanged lines hidden (view full) ---

3130 if (a->m) {
3131 /* Base register modification. Make sure if RT == RB,
3132 we see the result of the load. */
3133 dest = tcg_temp_new_i64();
3134 } else {
3135 dest = dest_gpr(ctx, a->t);
3136 }
3137
1/*
2 * HPPA emulation cpu translation for qemu.
3 *
4 * Copyright (c) 2016 Richard Henderson <rth@twiddle.net>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 3121 unchanged lines hidden (view full) ---

3130 if (a->m) {
3131 /* Base register modification. Make sure if RT == RB,
3132 we see the result of the load. */
3133 dest = tcg_temp_new_i64();
3134 } else {
3135 dest = dest_gpr(ctx, a->t);
3136 }
3137
3138 form_gva(ctx, &addr, &ofs, a->b, a->x, a->scale ? a->size : 0,
3138 form_gva(ctx, &addr, &ofs, a->b, a->x, a->scale ? 3 : 0,
3139 a->disp, a->sp, a->m, MMU_DISABLED(ctx));
3140
3141 /*
3142 * For hppa1.1, LDCW is undefined unless aligned mod 16.
3143 * However actual hardware succeeds with aligned mod 4.
3144 * Detect this case and log a GUEST_ERROR.
3145 *
3146 * TODO: HPPA64 relaxes the over-alignment requirement

--- 1553 unchanged lines hidden ---
3139 a->disp, a->sp, a->m, MMU_DISABLED(ctx));
3140
3141 /*
3142 * For hppa1.1, LDCW is undefined unless aligned mod 16.
3143 * However actual hardware succeeds with aligned mod 4.
3144 * Detect this case and log a GUEST_ERROR.
3145 *
3146 * TODO: HPPA64 relaxes the over-alignment requirement

--- 1553 unchanged lines hidden ---