aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/ClassDriver
ModeNameSize
d---------AndroidAccessoryHost333logstatsplain
d---------AudioInputHost274logstatsplain
d---------AudioOutputHost277logstatsplain
d---------JoystickHostWithParser298logstatsplain
d---------KeyboardHost268logstatsplain
d---------KeyboardHostWithParser298logstatsplain
d---------MIDIHost256logstatsplain
d---------MassStorageHost277logstatsplain
d---------MouseHost259logstatsplain
d---------MouseHostWithParser289logstatsplain
d---------PrinterHost265logstatsplain
d---------RNDISEthernetHost283logstatsplain
d---------StillImageHost274logstatsplain
d---------VirtualSerialHost283logstatsplain
-rw-r--r--makefile1320logstatsplain
'>286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313
/*
 *  Software MMU support
 * 
 *  Copyright (c) 2003 Fabrice Bellard
 *
 * This library is free software; you can redistribute it and/or
 * 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, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
#define DATA_SIZE (1 << SHIFT)

#if DATA_SIZE == 8
#define SUFFIX q
#define USUFFIX q
#define DATA_TYPE uint64_t
#elif DATA_SIZE == 4
#define SUFFIX l
#define USUFFIX l
#define DATA_TYPE uint32_t
#elif DATA_SIZE == 2
#define SUFFIX w
#define USUFFIX uw
#define DATA_TYPE uint16_t
#elif DATA_SIZE == 1
#define SUFFIX b
#define USUFFIX ub
#define DATA_TYPE uint8_t
#else
#error unsupported data size
#endif

#ifdef SOFTMMU_CODE_ACCESS
#define READ_ACCESS_TYPE 2
#define ADDR_READ addr_code
#else
#define READ_ACCESS_TYPE 0
#define ADDR_READ addr_read
#endif

static DATA_TYPE glue(glue(slow_ld, SUFFIX), MMUSUFFIX)(target_ulong addr, 
                                                        int is_user,