1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-13 23:37:13 +00:00

alpha: Fix Coverity identified Defect: 1416171

This commit is contained in:
Bob Supnik 2017-03-14 18:20:46 -07:00 committed by Mark Pizzolato
parent d3b6bb2dac
commit b0541176da

View File

@ -172,7 +172,7 @@ DEVICE ev5pal_dev = {
NULL, NULL, &pal_proc_reset_hwre,
NULL, NULL, NULL,
NULL, DEV_DIS
};
};
/* EV5 interrupt dispatch - reached from top of instruction loop -
dispatch to PALcode */
@ -365,7 +365,7 @@ if (ir & HW_LD_V) { /* virtual? */
res = SEXT_L_Q (res);
}
}
else if (ir & HW_LD_Q) R[ra] = ReadPQ (ea); /* physical, quad? */
else if (ir & HW_LD_Q) res = ReadPQ (ea); /* physical, quad? */
else {
res = ReadPL (ea); /* long, sext */
res = SEXT_L_Q (res);