The device model keeps 16 receive addresses (esc_uni[16]) and maps
RAL(0) ... RAH(15) to them, but e82545_read_ra() and e82545_write_ra()
assert that the index is below 15. A guest that reads or writes the
last entry aborts bhyve when assertions are compiled in:
Assertion failed: (idx < 15), function e82545_read_ra, file pci_e82545.c, line 1609.
Assert against the size of the array instead. QEMU's e1000 model
handles the same 16 pairs (RA ... RA + 31).
Signed-off-by: Wanpeng Qian <wanpengqian@gmail.com>
Sponsored by: keelos.dev