softmmu_header.h revision 3d40f685fa5cdd9cb665ae3cbf5f76113dafcb99
/*
* Software MMU support
*
* Copyright (c) 2003 Fabrice Bellard
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
/*
* Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
#if DATA_SIZE == 8
#define SUFFIX q
#define USUFFIX q
#define SUFFIX l
#define USUFFIX l
#define SUFFIX w
#define DATA_STYPE int16_t
#define SUFFIX b
#define DATA_STYPE int8_t
#else
#endif
#if ACCESS_TYPE < (NB_MMU_MODES)
#define CPU_MMU_INDEX ACCESS_TYPE
#else
#endif
#if DATA_SIZE == 8
#else
#endif
#else
#endif
{
int page_index;
int mmu_idx;
} else {
}
return res;
}
#if DATA_SIZE <= 2
{
int res, page_index;
int mmu_idx;
} else {
}
return res;
}
#endif
/* generic store macro */
{
int page_index;
int mmu_idx;
} else {
}
}
#endif /* ACCESS_TYPE != (NB_MMU_MODES + 1) */
#if DATA_SIZE == 8
{
union {
float64 d;
uint64_t i;
} u;
return u.d;
}
{
union {
float64 d;
uint64_t i;
} u;
u.d = v;
}
#endif /* DATA_SIZE == 8 */
#if DATA_SIZE == 4
{
union {
float32 f;
uint32_t i;
} u;
return u.f;
}
{
union {
float32 f;
uint32_t i;
} u;
u.f = v;
}
#endif /* DATA_SIZE == 4 */
#endif /* ACCESS_TYPE != (NB_MMU_MODES + 1) */