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

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0_rc2/] [or1ksim/] [cpu/] [or32/] [dyn_rec.h] - Blame information for rev 1780

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1452 nogj
/* dyn_rec.h -- Recompiler specific definitions
2
   Copyright (C) 2005 György `nog' Jeney, nog@sdf.lonestar.org
3
 
4
This file is part of OpenRISC 1000 Architectural Simulator.
5
 
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
10
 
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
GNU General Public License for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
 
20
 
21
#ifndef DYN_REC_H
22
#define DYN_REC_H
23
 
24
/* Each dynamically recompiled page has one of these */
25
struct dyn_page {
26
  oraddr_t or_page;
27
  void *host_page;
28
  unsigned int host_len;
29
  int dirty; /* Is recompiled page invalid? */
30
  int delayr; /* delayr of memory backing this page */
31 1481 nogj
  uint16_t ts_during[2048]; /* What registers the temporaries back (during the
32
                             * instruction) */
33
  uint16_t ts_bound[2049]; /* What registers the temporaries back (on the
34
                            * begining boundry of the instruction) */
35
  void **locs; /* Openrisc locations in the recompiled code */
36 1452 nogj
};
37
 
38
void recompile_page(struct dyn_page *dyn);
39
struct dyn_page *new_dp(oraddr_t page);
40
void add_to_opq(struct op_queue *opq, int end, int op);
41
void add_to_op_params(struct op_queue *opq, int end, unsigned long param);
42
void *enough_host_page(struct dyn_page *dp, void *cur, unsigned int *len,
43
                       unsigned int amount);
44
void init_dyn_recomp(void);
45
void jump_dyn_code(oraddr_t addr);
46
void run_sched_out_of_line(int add_normal);
47
void recheck_immu(int got_en_dis);
48 1481 nogj
void enter_dyn_code(oraddr_t addr, struct dyn_page *dp);
49 1486 nogj
void dyn_checkwrite(oraddr_t addr);
50 1452 nogj
 
51 1481 nogj
extern void *rec_stack_base;
52
 
53 1452 nogj
#define IMMU_GOT_ENABLED 1
54
#define IMMU_GOT_DISABLED 2
55
 
56
#endif

powered by: WebSVN 2.1.0

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