Changeset 37011 in vbox
- Timestamp:
- May 9, 2011 10:04:13 AM (14 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/Makefile.kmk
r36834 r37011 566 566 if1of ($(KBUILD_TARGET), win) 567 567 #VMMAll/IEMAll.cpp_CXXFLAGS = TODO 568 #else if1of ($(KBUILD_TARGET_ARCH), amd64) 569 # VMMAll/IEMAll.cpp_CXXFLAGS = -O2 -fomit-frame-pointer 568 570 else 569 VMMAll/IEMAll.cpp_CXXFLAGS = -O2 #-fomit-frame-pointer - latter causes trouble on mac.571 VMMAll/IEMAll.cpp_CXXFLAGS = -O2 #-fomit-frame-pointer - latter causes trouble on mac. 570 572 endif 571 573 -
trunk/src/VBox/VMM/VMMAll/IEMAll.cpp
r37007 r37011 88 88 static VBOXSTRICTRC __attribute__((__fastcall__, __nothrow__)) a_Name (PIEMCPU pIemCpu) 89 89 # define FNIEMOP_DEF_1(a_Name, a_Type0, a_Name0) \ 90 static VBOXSTRICTRC __attribute__((__fastcall__, __nothrow__)) a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0) RT_NO_THROW90 static VBOXSTRICTRC __attribute__((__fastcall__, __nothrow__)) a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0) 91 91 # define FNIEMOP_DEF_2(a_Name, a_Type0, a_Name0, a_Type1, a_Name1) \ 92 static VBOXSTRICTRC __attribute__((__fastcall__, __nothrow__)) a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0, a_Type1 a_Name1) RT_NO_THROW92 static VBOXSTRICTRC __attribute__((__fastcall__, __nothrow__)) a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0, a_Type1 a_Name1) 93 93 94 94 #elif defined(_MSC_VER) && defined(RT_ARCH_X86) … … 100 100 # define FNIEMOP_DEF_2(a_Name, a_Type0, a_Name0, a_Type1, a_Name1) \ 101 101 static /*__declspec(naked)*/ VBOXSTRICTRC __fastcall a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0, a_Type1 a_Name1) RT_NO_THROW 102 103 #elif defined(__GNUC__) 104 typedef VBOXSTRICTRC (* PFNIEMOP)(PIEMCPU pIemCpu); 105 # define FNIEMOP_DEF(a_Name) \ 106 static VBOXSTRICTRC __attribute__((__nothrow__)) a_Name(PIEMCPU pIemCpu) 107 # define FNIEMOP_DEF_1(a_Name, a_Type0, a_Name0) \ 108 static VBOXSTRICTRC __attribute__((__nothrow__)) a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0) 109 # define FNIEMOP_DEF_2(a_Name, a_Type0, a_Name0, a_Type1, a_Name1) \ 110 static VBOXSTRICTRC __attribute__((__nothrow__)) a_Name(PIEMCPU pIemCpu, a_Type0 a_Name0, a_Type1 a_Name1) 102 111 103 112 #else … … 749 758 * @param pb Where to return the opcode byte. 750 759 */ 751 static VBOXSTRICTRCiemOpcodeGetNextByteSlow(PIEMCPU pIemCpu, uint8_t *pb)760 DECL_NO_INLINE(static, VBOXSTRICTRC) iemOpcodeGetNextByteSlow(PIEMCPU pIemCpu, uint8_t *pb) 752 761 { 753 762 VBOXSTRICTRC rcStrict = iemOpcodeFetchMoreBytes(pIemCpu, 1); … … 771 780 * @param pu16 Where to return the opcode dword. 772 781 */ 773 static VBOXSTRICTRCiemOpcodeGetNextS8SxU16Slow(PIEMCPU pIemCpu, uint16_t *pu16)782 DECL_NO_INLINE(static, VBOXSTRICTRC) iemOpcodeGetNextS8SxU16Slow(PIEMCPU pIemCpu, uint16_t *pu16) 774 783 { 775 784 uint8_t u8; … … 788 797 * @param pu16 Where to return the opcode word. 789 798 */ 790 static VBOXSTRICTRCiemOpcodeGetNextU16Slow(PIEMCPU pIemCpu, uint16_t *pu16)799 DECL_NO_INLINE(static, VBOXSTRICTRC) iemOpcodeGetNextU16Slow(PIEMCPU pIemCpu, uint16_t *pu16) 791 800 { 792 801 VBOXSTRICTRC rcStrict = iemOpcodeFetchMoreBytes(pIemCpu, 2); … … 810 819 * @param pu32 Where to return the opcode dword. 811 820 */ 812 static VBOXSTRICTRCiemOpcodeGetNextU32Slow(PIEMCPU pIemCpu, uint32_t *pu32)821 DECL_NO_INLINE(static, VBOXSTRICTRC) iemOpcodeGetNextU32Slow(PIEMCPU pIemCpu, uint32_t *pu32) 813 822 { 814 823 VBOXSTRICTRC rcStrict = iemOpcodeFetchMoreBytes(pIemCpu, 4); … … 835 844 * @param pu64 Where to return the opcode qword. 836 845 */ 837 static VBOXSTRICTRCiemOpcodeGetNextS32SxU64Slow(PIEMCPU pIemCpu, uint64_t *pu64)846 DECL_NO_INLINE(static, VBOXSTRICTRC) iemOpcodeGetNextS32SxU64Slow(PIEMCPU pIemCpu, uint64_t *pu64) 838 847 { 839 848 VBOXSTRICTRC rcStrict = iemOpcodeFetchMoreBytes(pIemCpu, 4); … … 860 869 * @param pu64 Where to return the opcode qword. 861 870 */ 862 static VBOXSTRICTRCiemOpcodeGetNextU64Slow(PIEMCPU pIemCpu, uint64_t *pu64)871 DECL_NO_INLINE(static, VBOXSTRICTRC) iemOpcodeGetNextU64Slow(PIEMCPU pIemCpu, uint64_t *pu64) 863 872 { 864 873 VBOXSTRICTRC rcStrict = iemOpcodeFetchMoreBytes(pIemCpu, 8);
Note:
See TracChangeset
for help on using the changeset viewer.