Changeset 36175 in vbox for trunk/src/recompiler/exec-all.h
- Timestamp:
- Mar 4, 2011 4:21:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/exec-all.h
r36170 r36175 15 15 * 16 16 * 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/>. 19 18 */ 20 19 … … 58 57 59 58 /* XXX: make safe guess about sizes */ 60 #define MAX_OP_PER_INSTR 6459 #define MAX_OP_PER_INSTR 96 61 60 /* A Call op needs up to 6 + 2N parameters (N = number of arguments). */ 62 61 #define MAX_OPC_PARAM 10 … … 243 242 244 243 /* 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); 246 247 247 248 #if QEMU_GNUC_PREREQ(4, 1) … … 350 351 { 351 352 int mmu_idx, page_index, pd; 353 void *p; 352 354 353 355 page_index = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1); … … 377 379 return addr + env1->phys_addends[mmu_idx][page_index]; 378 380 # 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); 380 384 # endif 381 385 } … … 396 400 #endif 397 401 398 #ifdef USE_KQEMU402 #ifdef CONFIG_KQEMU 399 403 #define KQEMU_MODIFY_PAGE_MASK (0xff & ~(VGA_DIRTY_FLAG | CODE_DIRTY_FLAG)) 400 404 … … 414 418 extern uint32_t kqemu_comm_base; 415 419 420 extern ram_addr_t kqemu_phys_ram_size; 421 extern uint8_t *kqemu_phys_ram_base; 422 416 423 static inline int kqemu_is_ok(CPUState *env) 417 424 { … … 431 438 432 439 CPUDebugExcpHandler *cpu_set_debug_excp_handler(CPUDebugExcpHandler *handler); 433 #endif 440 441 /* vl.c */ 442 #ifndef VBOX 443 extern int singlestep; 444 #endif 445 446 #endif
Note:
See TracChangeset
for help on using the changeset viewer.