mirror of
https://github.com/simh/simh.git
synced 2026-01-13 23:35:57 +00:00
VAX750: Fixed bad test for UBA intr level (COVERITY)
IPL_UBA already has the subtract built in: So it shouldn't be extracted again. The whole routine looks a little strange, but the way it works is that an interrupt from the UBA itself sets <bit 31> in the returned vector. Because the vector is read by code and not used by hardware, the flag bit is "harmless." UBA interrupts occur only under strange circumstances, like bad map pages and device NXMs. Under the simulator, with a debugged OS, they never happen.
This commit is contained in:
parent
8d8ecc1a5a
commit
f0bee7f28e
@ -422,7 +422,7 @@ int32 uba_get_ubvector (int32 lvl)
|
||||
{
|
||||
int32 i;
|
||||
|
||||
if ((lvl == (IPL_UBA - IPL_HMIN)) && uba_int) { /* UBA lvl, int? */
|
||||
if ((lvl == IPL_UBA) && uba_int) { /* UBA lvl, int? */
|
||||
uba_int = 0; /* clear int */
|
||||
}
|
||||
for (i = 0; int_req[lvl] && (i < 32); i++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user