VirtualBox

Changeset 2126 in vbox


Ignore:
Timestamp:
Apr 17, 2007 12:32:03 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20447
Message:

TRPM changes to assert and report trap/interrupt types accurately.

Location:
trunk/src/recompiler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/VBoxRecompiler.c

    r2011 r2126  
    18491849     */
    18501850    pVM->rem.s.Env.exception_index = -1; /** @todo this won't work :/ */
    1851     bool            fIsSoftwareInterrupt;
    1852     uint8_t         u8TrapNo;
    1853     int rc = TRPMQueryTrap(pVM, &u8TrapNo, &fIsSoftwareInterrupt);
     1851    TRPMEVENT   enmType;
     1852    uint8_t     u8TrapNo;
     1853    int rc = TRPMQueryTrap(pVM, &u8TrapNo, &enmType);
    18541854    if (VBOX_SUCCESS(rc))
    18551855    {
     
    18631863
    18641864        pVM->rem.s.Env.exception_index = u8TrapNo;
    1865         if (!fIsSoftwareInterrupt)
     1865        if (enmType != TRPM_SOFTWARE_INT)
    18661866        {
    18671867            pVM->rem.s.Env.exception_is_int     = 0;
  • trunk/src/recompiler/new/VBoxRecompiler.c

    r2006 r2126  
    19331933     */
    19341934    pVM->rem.s.Env.exception_index = -1; /** @todo this won't work :/ */
    1935     bool            fIsSoftwareInterrupt;
    1936     uint8_t         u8TrapNo;
    1937     int rc = TRPMQueryTrap(pVM, &u8TrapNo, &fIsSoftwareInterrupt);
     1935    TRPMEVENT   enmType;
     1936    uint8_t     u8TrapNo;
     1937    int rc = TRPMQueryTrap(pVM, &u8TrapNo, &enmType);
    19381938    if (VBOX_SUCCESS(rc))
    19391939    {
     
    19471947
    19481948        pVM->rem.s.Env.exception_index = u8TrapNo;
    1949         if (!fIsSoftwareInterrupt)
     1949        if (enmType != TRPM_SOFTWARE_INT)
    19501950        {
    19511951            pVM->rem.s.Env.exception_is_int     = 0;
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