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

Subversion Repositories or1k

[/] [or1k/] [tags/] [rel-0-3-0-rc3/] [or1ksim/] [cpu/] [or32/] [op.c] - Diff between revs 1692 and 1717

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

Rev 1692 Rev 1717
Line 36... Line 36...
#include "except.h"
#include "except.h"
#include "abstract.h"
#include "abstract.h"
#include "execute.h"
#include "execute.h"
#include "sprs.h"
#include "sprs.h"
#include "sched.h"
#include "sched.h"
 
#include "immu.h"
 
 
#include "op_support.h"
#include "op_support.h"
 
 
#include "i386_regs.h"
#include "i386_regs.h"
 
 
Line 92... Line 93...
 
 
static inline void save_t_bound(oraddr_t pc)
static inline void save_t_bound(oraddr_t pc)
{
{
  int reg;
  int reg;
 
 
  pc = (pc & config.immu.page_offset_mask) / 4;
  pc = (pc & immu_state->page_offset_mask) / 4;
  reg = env->curr_page->ts_bound[pc];
  reg = env->curr_page->ts_bound[pc];
 
 
  if(reg & 0x1f)
  if(reg & 0x1f)
    env->reg[reg & 0x1f] = t0;
    env->reg[reg & 0x1f] = t0;
 
 
Line 135... Line 136...
{
{
  uint16_t reg = 0;
  uint16_t reg = 0;
  uint32_t t0_reg = t0, t1_reg = t1, t2_reg = t2;
  uint32_t t0_reg = t0, t1_reg = t1, t2_reg = t2;
  struct cpu_state *cpu_reg = env;
  struct cpu_state *cpu_reg = env;
 
 
  addr &= config.immu.pagesize - 1;
  addr &= immu_state->page_offset_mask;
  addr >>= 2;
  addr >>= 2;
 
 
  if(addr)
  if(addr)
    reg = dp->ts_bound[addr - 1];
    reg = dp->ts_bound[addr - 1];
 
 

powered by: WebSVN 2.1.0

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