VirtualBox

Changeset 9836 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jun 20, 2008 8:57:26 AM (16 years ago)
Author:
vboxsync
Message:

Fixed some inconsistencies (thanks Frank)

Location:
trunk/src/VBox/VMM/VMMAll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp

    r9835 r9836  
    11951195        STAM_COUNTER_INC(&pStats->CTXALLSUFF(Read));
    11961196#endif
    1197     *pu32Value = 0;
     1197    /* Unassigned memory; this is actually not supposed to happen. */
     1198    switch (cbValue)
     1199    {
     1200        case 1: *(uint8_t *)pu32Value  = 0xff; break;
     1201        case 2: *(uint16_t *)pu32Value = 0xffff; break;
     1202        case 4: *(uint32_t *)pu32Value = 0xffffffff; break;
     1203        case 8: *(uint64_t *)pu32Value = 0xffffffffffffffff; break;
     1204        default: AssertReleaseMsgFailed(("cbValue=%d GCPhys=%VGp\n", cbValue, GCPhys)); break;
     1205    }
    11981206    Log4(("IOMMMIORead: GCPhys=%RGp *pu32=%08RX32 cb=%d rc=VINF_SUCCESS\n", GCPhys, *pu32Value, cbValue));
    11991207    return VINF_SUCCESS;
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r9790 r9836  
    13151315#if 1                   /** @todo r=bird: Can you do this properly please. */
    13161316                            /** @todo Try MMIO; quick hack */
    1317                             if (cbRead <= 4 && IOMMMIORead(pVM, GCPhys, (uint32_t *)pvBuf, cbRead) == VINF_SUCCESS)
     1317                            if (cbRead <= 8 && IOMMMIORead(pVM, GCPhys, (uint32_t *)pvBuf, cbRead) == VINF_SUCCESS)
    13181318                                goto end;
    13191319#endif
     
    16561656#if 1                   /** @todo r=bird: Can you do this properly please. */
    16571657                            /** @todo Try MMIO; quick hack */
    1658                             if (cbWrite <= 4 && IOMMMIOWrite(pVM, GCPhys, *(uint32_t *)pvBuf, cbWrite) == VINF_SUCCESS)
     1658                            if (cbWrite <= 8 && IOMMMIOWrite(pVM, GCPhys, *(uint32_t *)pvBuf, cbWrite) == VINF_SUCCESS)
    16591659                                goto end;
    16601660#endif
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