alpha: Compiler suggested cleanups
This commit is contained in:
parent
de9fc84fd4
commit
17f6132352
6 changed files with 12 additions and 14 deletions
|
@ -393,7 +393,7 @@ while (reason == 0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sim_interval <= 0) { /* chk clock queue */
|
if (sim_interval <= 0) { /* chk clock queue */
|
||||||
if (reason = sim_process_event ()) break;
|
if ((reason = sim_process_event ())) break;
|
||||||
intr_summ = pal_eval_intr (1); /* eval interrupts */
|
intr_summ = pal_eval_intr (1); /* eval interrupts */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1433,7 +1433,7 @@ while (reason == 0) {
|
||||||
|
|
||||||
case 0x39: /* MINSW4 */
|
case 0x39: /* MINSW4 */
|
||||||
if (!(arch_mask & AMASK_MVI)) ABORT (EXC_RSVI);
|
if (!(arch_mask & AMASK_MVI)) ABORT (EXC_RSVI);
|
||||||
for (i = 0, res = 0; i < 8; i = i++) {
|
for (i = 0, res = 0; i < 8; i++) {
|
||||||
s1 = SEXT_W_Q (R[ra] >> (i << 4));
|
s1 = SEXT_W_Q (R[ra] >> (i << 4));
|
||||||
s2 = SEXT_W_Q (rbv >> (i << 4));
|
s2 = SEXT_W_Q (rbv >> (i << 4));
|
||||||
res = res | (((s1 <= s2)? R[ra]: rbv) & word_mask[i]);
|
res = res | (((s1 <= s2)? R[ra]: rbv) & word_mask[i]);
|
||||||
|
@ -1451,7 +1451,7 @@ while (reason == 0) {
|
||||||
|
|
||||||
case 0x3B: /* MINUW4 */
|
case 0x3B: /* MINUW4 */
|
||||||
if (!(arch_mask & AMASK_MVI)) ABORT (EXC_RSVI);
|
if (!(arch_mask & AMASK_MVI)) ABORT (EXC_RSVI);
|
||||||
for (i = 0, res = 0; i < 8; i = i++) {
|
for (i = 0, res = 0; i < 8; i++) {
|
||||||
s64 = R[ra] & word_mask[i];
|
s64 = R[ra] & word_mask[i];
|
||||||
t64 = rbv & word_mask[i];
|
t64 = rbv & word_mask[i];
|
||||||
res = res | ((s64 <= t64)? s64: t64);
|
res = res | ((s64 <= t64)? s64: t64);
|
||||||
|
@ -1469,7 +1469,7 @@ while (reason == 0) {
|
||||||
|
|
||||||
case 0x3D: /* MAXUW4 */
|
case 0x3D: /* MAXUW4 */
|
||||||
if (!(arch_mask & AMASK_MVI)) ABORT (EXC_RSVI);
|
if (!(arch_mask & AMASK_MVI)) ABORT (EXC_RSVI);
|
||||||
for (i = 0, res = 0; i < 8; i = i++) {
|
for (i = 0, res = 0; i < 8; i++) {
|
||||||
s64 = R[ra] & word_mask[i];
|
s64 = R[ra] & word_mask[i];
|
||||||
t64 = rbv & word_mask[i];
|
t64 = rbv & word_mask[i];
|
||||||
res = res | ((s64 >= t64)? s64: t64);
|
res = res | ((s64 >= t64)? s64: t64);
|
||||||
|
@ -1487,7 +1487,7 @@ while (reason == 0) {
|
||||||
|
|
||||||
case 0x3F: /* MAXSW4 */
|
case 0x3F: /* MAXSW4 */
|
||||||
if (!(arch_mask & AMASK_MVI)) ABORT (EXC_RSVI);
|
if (!(arch_mask & AMASK_MVI)) ABORT (EXC_RSVI);
|
||||||
for (i = 0, res = 0; i < 8; i = i++) {
|
for (i = 0, res = 0; i < 8; i++) {
|
||||||
s1 = SEXT_W_Q (R[ra] >> (i << 4));
|
s1 = SEXT_W_Q (R[ra] >> (i << 4));
|
||||||
s2 = SEXT_W_Q (rbv >> (i << 4));
|
s2 = SEXT_W_Q (rbv >> (i << 4));
|
||||||
res = res | (((s1 >= s2)? R[ra]: rbv) & word_mask[i]);
|
res = res | (((s1 >= s2)? R[ra]: rbv) & word_mask[i]);
|
||||||
|
@ -1834,7 +1834,7 @@ return SCPE_OK;
|
||||||
|
|
||||||
t_stat cpu_show_hist (FILE *st, UNIT *uptr, int32 val, void *desc)
|
t_stat cpu_show_hist (FILE *st, UNIT *uptr, int32 val, void *desc)
|
||||||
{
|
{
|
||||||
uint32 k, di, lnt;
|
int32 k, di, lnt;
|
||||||
char *cptr = (char *) desc;
|
char *cptr = (char *) desc;
|
||||||
t_stat r;
|
t_stat r;
|
||||||
InstHistory *h;
|
InstHistory *h;
|
||||||
|
|
|
@ -34,11 +34,7 @@
|
||||||
#include "sim_defs.h"
|
#include "sim_defs.h"
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
|
||||||
#if defined (__GNUC__)
|
|
||||||
#define INLINE inline
|
|
||||||
#else
|
|
||||||
#define INLINE
|
#define INLINE
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Configuration */
|
/* Configuration */
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,7 @@ if ((dtlb_spage & SPEN_43) && (VPN_GETSP43 (vpn) == 2))
|
||||||
return (va & SP43_MASK); /* 43b superpage? */
|
return (va & SP43_MASK); /* 43b superpage? */
|
||||||
if ((dtlb_spage & SPEN_32) && (VPN_GETSP32 (vpn) == 0x1FFE))
|
if ((dtlb_spage & SPEN_32) && (VPN_GETSP32 (vpn) == 0x1FFE))
|
||||||
return (va & SP32_MASK); /* 32b superpage? */
|
return (va & SP32_MASK); /* 32b superpage? */
|
||||||
if (tlbp = dtlb_lookup (vpn)) /* try TLB */
|
if ((tlbp = dtlb_lookup (vpn))) /* try TLB */
|
||||||
return PHYS_ADDR (tlbp->pfn, va); /* found it */
|
return PHYS_ADDR (tlbp->pfn, va); /* found it */
|
||||||
if (ev5_mcsr & MCSR_NT) exc = cons_find_pte_nt (va, &pte64);
|
if (ev5_mcsr & MCSR_NT) exc = cons_find_pte_nt (va, &pte64);
|
||||||
else exc = cons_find_pte_srm (va, &pte64);
|
else exc = cons_find_pte_srm (va, &pte64);
|
||||||
|
|
|
@ -904,7 +904,8 @@ t_stat parse_pal_hwre (char *cptr, t_value *inst)
|
||||||
{
|
{
|
||||||
uint32 i, d, val = 0;
|
uint32 i, d, val = 0;
|
||||||
int32 reg;
|
int32 reg;
|
||||||
char *tptr, gbuf[CBUFSIZE];
|
const char *tptr;
|
||||||
|
char gbuf[CBUFSIZE];
|
||||||
t_stat r;
|
t_stat r;
|
||||||
|
|
||||||
cptr = get_glyph (cptr, gbuf, '/');
|
cptr = get_glyph (cptr, gbuf, '/');
|
||||||
|
|
|
@ -209,7 +209,7 @@ t_uint64 vax_cvtif (t_uint64 val, uint32 ir, uint32 dp)
|
||||||
UFP a;
|
UFP a;
|
||||||
|
|
||||||
if (val == 0) return 0; /* 0? return +0 */
|
if (val == 0) return 0; /* 0? return +0 */
|
||||||
if (val < 0) { /* < 0? */
|
if ((val & Q_SIGN) != 0) { /* < 0? */
|
||||||
a.sign = 1; /* set sign */
|
a.sign = 1; /* set sign */
|
||||||
val = NEG_Q (val); /* |val| */
|
val = NEG_Q (val); /* |val| */
|
||||||
}
|
}
|
||||||
|
|
|
@ -716,7 +716,8 @@ t_uint64 bra, df, db;
|
||||||
uint32 i, k, lit8, fl;
|
uint32 i, k, lit8, fl;
|
||||||
int32 reg;
|
int32 reg;
|
||||||
t_stat r;
|
t_stat r;
|
||||||
char *tptr, gbuf[CBUFSIZE];
|
const char *tptr;
|
||||||
|
char gbuf[CBUFSIZE];
|
||||||
|
|
||||||
if ((r = parse_pal_hwre (cptr, inst)) < 0) return r; /* PAL hardware? */
|
if ((r = parse_pal_hwre (cptr, inst)) < 0) return r; /* PAL hardware? */
|
||||||
cptr = get_glyph (cptr, gbuf, 0); /* get opcode */
|
cptr = get_glyph (cptr, gbuf, 0); /* get opcode */
|
||||||
|
|
Loading…
Add table
Reference in a new issue