mirror of
https://github.com/simh/simh.git
synced 2026-04-29 13:12:13 +00:00
VAX750: Fix UBA register alignment and length check
The VAX 11/750 diagnostic supervisor makes word length references to UBA register space, so this must have been legal.
This commit is contained in:
@@ -200,7 +200,7 @@ t_stat uba_rdreg (int32 *val, int32 pa, int32 lnt)
|
|||||||
{
|
{
|
||||||
int32 idx, ofs;
|
int32 idx, ofs;
|
||||||
|
|
||||||
if ((pa & 3) || (lnt != L_LONG)) { /* unaligned or not lw? */
|
if ((pa & 3) || (lnt < L_WORD)) { /* unaligned or not at least word? */
|
||||||
sim_printf (">>UBA: invalid adapter read mask, pa = %X, lnt = %d\r\n", pa, lnt);
|
sim_printf (">>UBA: invalid adapter read mask, pa = %X, lnt = %d\r\n", pa, lnt);
|
||||||
/* FIXME: set appropriate error bits */
|
/* FIXME: set appropriate error bits */
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user