VirtualBox

Changeset 36175 in vbox for trunk/src/recompiler/exec-all.h


Ignore:
Timestamp:
Mar 4, 2011 4:21:09 PM (14 years ago)
Author:
vboxsync
Message:

rem: Synced up to v0.11.1 (35bfc7324e2e6946c4113ada5db30553a1a7c40b) from git://git.savannah.nongnu.org/qemu.git.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/exec-all.h

    r36170 r36175  
    1515 *
    1616 * You should have received a copy of the GNU Lesser General Public
    17  * License along with this library; if not, write to the Free Software
    18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA  02110-1301 USA
     17 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
    1918 */
    2019
     
    5857
    5958/* XXX: make safe guess about sizes */
    60 #define MAX_OP_PER_INSTR 64
     59#define MAX_OP_PER_INSTR 96
    6160/* A Call op needs up to 6 + 2N parameters (N = number of arguments).  */
    6261#define MAX_OPC_PARAM 10
     
    243242
    244243    /* we could use a ldr pc, [pc, #-4] kind of branch and avoid the flush */
    245     *(uint32_t *)jmp_addr |= ((addr - (jmp_addr + 8)) >> 2) & 0xffffff;
     244    *(uint32_t *)jmp_addr =
     245        (*(uint32_t *)jmp_addr & ~0xffffff)
     246        | (((addr - (jmp_addr + 8)) >> 2) & 0xffffff);
    246247
    247248#if QEMU_GNUC_PREREQ(4, 1)
     
    350351{
    351352    int mmu_idx, page_index, pd;
     353    void *p;
    352354
    353355    page_index = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1);
     
    377379    return addr + env1->phys_addends[mmu_idx][page_index];
    378380# else
    379     return addr + env1->tlb_table[mmu_idx][page_index].addend - (unsigned long)phys_ram_base;
     381    p = (void *)(unsigned long)addr
     382        + env1->tlb_table[mmu_idx][page_index].addend;
     383    return qemu_ram_addr_from_host(p);
    380384# endif
    381385}
     
    396400#endif
    397401
    398 #ifdef USE_KQEMU
     402#ifdef CONFIG_KQEMU
    399403#define KQEMU_MODIFY_PAGE_MASK (0xff & ~(VGA_DIRTY_FLAG | CODE_DIRTY_FLAG))
    400404
     
    414418extern uint32_t kqemu_comm_base;
    415419
     420extern ram_addr_t kqemu_phys_ram_size;
     421extern uint8_t *kqemu_phys_ram_base;
     422
    416423static inline int kqemu_is_ok(CPUState *env)
    417424{
     
    431438
    432439CPUDebugExcpHandler *cpu_set_debug_excp_handler(CPUDebugExcpHandler *handler);
    433 #endif
     440
     441/* vl.c */
     442#ifndef VBOX
     443extern int singlestep;
     444#endif
     445
     446#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