VirtualBox

Changeset 93590 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Feb 3, 2022 4:45:47 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149727
Message:

DevDP8390: Manual 0xff loop write optimization (gcc 10+ does this on its own, causing trouble).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevDP8390.cpp

    r93567 r93590  
    36603660    }
    36613661    else
    3662     {
    3663         while (cb-- > 0)
    3664             *pbData++ = 0xff;
    3665     }
     3662        memset(pv, 0xff, cb);
    36663663
    36673664//    STAM_PROFILE_STOP(&pThis->CTX_MID_Z(Stat,MemoryRead), a);
     
    37153712    {
    37163713        Log3Func(("#%d: Ignoring read of %u bytes from address %X\n", pDevIns->iInstance, cb, off));
    3717         while (cb-- > 0)
    3718             *pbData++ = 0xff;
     3714        memset(pv, 0xff, cb);
    37193715    }
    37203716    return VINF_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

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