VirtualBox

Changeset 97621 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 21, 2022 10:27:52 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154667
Message:

DevVGA: Register GR4 (read map select), as the name suggests, does not affect writes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r96407 r97621  
    13911391        }
    13921392    } else if (!(pThis->sr[4] & 0x04)) {    /* Host access is controlled by SR4, not GR5! */
    1393         /* odd/even mode (aka text mode mapping) */
    1394         plane = (pThis->gr[4] & 2) | (addr & 1);
     1393        /* odd/even mode (aka text mode mapping); GR4 does not affect writes! */
     1394        plane = addr & 1;
    13951395        mask = (1 << plane);
    13961396        if (pThis->sr[2] & mask) {
     
    35163516            for (i = 0; i < cbItem; i++)
    35173517            {
    3518                 unsigned plane = (pThis->gr[4] & 2) | (GCPhysAddr & 1);
     3518                unsigned plane = GCPhysAddr & 1;
    35193519                if (pThis->sr[2] & (1 << plane)) {
    35203520                    RTGCPHYS PhysAddr2 = ((GCPhysAddr & ~1) * 4) | plane;
     
    43484348    vga_retrace_s   *r = &pThis->retrace_state;
    43494349    const char      *clocks[] = { "25.175 MHz", "28.322 MHz", "External", "Reserved?!" };
     4350    const char      *mem_map[] = { "A000-BFFF", "A000-AFFF", "B000-B7FF", "B800-BFFF" };
    43504351    NOREF(pszArgs);
    43514352
     
    43534354    char_dots = (pThis->sr[0x01] & 1) ? 8 : 9;
    43544355    double_scan = pThis->cr[9] >> 7;
     4356    pHlp->pfnPrintf(pHlp, "decoding memory at %s\n", mem_map[(pThis->gr[6] >> 2) & 3]);
    43554357    pHlp->pfnPrintf(pHlp, "Misc status reg. MSR:%02X\n", pThis->msr);
    43564358    pHlp->pfnPrintf(pHlp, "pixel clock: %s\n", clocks[(pThis->msr >> 2) & 3]);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette