Skip to content

Commit

Permalink
Fix memory corruption when reading Voodoo ROM (#169)
Browse files Browse the repository at this point in the history
Fixes #131.
  • Loading branch information
Vort authored Dec 15, 2023
1 parent 50258bf commit 30db11d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bochs/iodev/display/banshee.cc
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,8 @@ void bx_banshee_c::mem_read(bx_phy_address addr, unsigned len, void *data)
case 1:
*((Bit8u*)data) = (Bit8u)value;
break;
case 3:
*((Bit8u*)data + 2) = (Bit8u)(value >> 16);
case 2:
*((Bit16u*)data) = (Bit16u)value;
break;
Expand Down

0 comments on commit 30db11d

Please sign in to comment.