OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [rel-0-3-0-rc1/] [or1ksim/] [cpu/] [or32/] [op.c] - Diff between revs 1481 and 1483

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1481 Rev 1483
Line 48... Line 48...
/* This must be here since the function in op_i386.h use this variable */
/* This must be here since the function in op_i386.h use this variable */
register struct cpu_state *env asm(CPU_STATE_REG);
register struct cpu_state *env asm(CPU_STATE_REG);
 
 
#include "op_i386.h"
#include "op_i386.h"
 
 
/* FIXME: Move this */
 
#define PAGE_LEN 8192
 
 
 
/*
/*
 * WARNING: Before going of and wildly editing everything in the file remember
 * WARNING: Before going of and wildly editing everything in the file remember
 * the following about its contents:
 * the following about its contents:
 * 1) The `functions' don't EVER return.  In otherwords haveing return state-
 * 1) The `functions' don't EVER return.  In otherwords haveing return state-
 *    ments _anywere_ in this file is likely not to work.  This is because
 *    ments _anywere_ in this file is likely not to work.  This is because
Line 131... Line 128...
 
 
void enter_dyn_code(oraddr_t addr, struct dyn_page *dp)
void enter_dyn_code(oraddr_t addr, struct dyn_page *dp)
{
{
  uint16_t reg;
  uint16_t reg;
 
 
  addr &= PAGE_SIZE - 1;
  addr &= config.immu.pagesize - 1;
  addr >>= 2;
  addr >>= 2;
 
 
  reg = dp->ts_bound[addr];
  reg = dp->ts_bound[addr];
 
 
  if(reg & 0x1f)
  if(reg & 0x1f)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.