VirtualBox

Ignore:
Timestamp:
Oct 19, 2008 8:45:30 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38111
Message:

more MSVC-related stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler_new/target-i386/cpu.h

    r13337 r13382  
    569569    union {
    570570#ifdef USE_X86LDOUBLE
     571#ifndef VBOX
    571572        CPU86_LDouble d __attribute__((aligned(16)));
     573#else
     574        ALIGNED_MEMBER(CPU86_LDouble, d, 16);
     575#endif
    572576#else
    573577        CPU86_LDouble d;
     
    729733    union {
    730734#ifdef USE_X86LDOUBLE
     735#ifndef VBOX
    731736        CPU86_LDouble d __attribute__((aligned(16)));
     737#else
     738        ALIGNED_MEMBER(CPU86_LDouble, d, 16);
     739#endif
    732740#else
    733741        CPU86_LDouble d;
     
    805813/* this function must always be used to load data in the segment
    806814   cache: it synchronizes the hflags with the segment cache values */
     815#ifndef VBOX
    807816static inline void cpu_x86_load_seg_cache(CPUX86State *env,
    808817                                          int seg_reg, unsigned int selector,
     
    810819                                          unsigned int limit,
    811820                                          unsigned int flags)
     821#else
     822DECLINLINE(void)  cpu_x86_load_seg_cache(CPUX86State *env,
     823                                          int seg_reg, unsigned int selector,
     824                                          target_ulong base,
     825                                          unsigned int limit,
     826                                          unsigned int flags)
     827
     828#endif
    812829{
    813830    SegmentCache *sc;
     
    866883
    867884/* wrapper, just in case memory mappings must be changed */
     885#ifndef VBOX
    868886static inline void cpu_x86_set_cpl(CPUX86State *s, int cpl)
     887#else
     888DECLINLINE(void) cpu_x86_set_cpl(CPUX86State *s, int cpl)
     889#endif
    869890{
    870891#if HF_CPL_MASK == 3
     
    956977#define MMU_MODE1_SUFFIX _user
    957978#define MMU_USER_IDX 1
     979#ifndef VBOX
    958980static inline int cpu_mmu_index (CPUState *env)
     981#else
     982DECLINLINE(int) cpu_mmu_index (CPUState *env)
     983#endif
    959984{
    960985    return (env->hflags & HF_CPL_MASK) == 3 ? 1 : 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