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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-binutils/] [binutils-2.19.1/] [cgen/] [cpu/] [sh-sid.cpu] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 jlechner
; SuperH SHcompact instruction set description.  -*- Scheme -*-
2
; Copyright (C) 2006 Red Hat, Inc.
3
; This file is part of CGEN.
4
; See file COPYING.CGEN for details.
5
 
6
; Syntax for "delay" is different for SID vs SIM.
7
(define-pmacro (set-delay del targ src)
8
   (set (delay del targ) src)
9
)
10
 
11
; SID uses parallel insns to implement "delay",
12
(define-pmacro (isa-parallel-insns n)
13
  (parallel-insns n)
14
)
15
 
16
; Call save_delayed_pc for SID.
17
(define-pmacro (save-delayed-pc disp)
18
  (c-call VOID "save_delayed_pc" disp)
19
)
20
 
21
; Call save_branch_prediction for SID.
22
(define-pmacro (save-branch-prediction tra likely)
23
  (c-call "save_branch_prediction" tra likely)
24
)
25
 
26
; Call save_branch_optimization for SID.
27
(define-pmacro (save-branch-optimization likely)
28
  (c-call "save_branch_optimization" likely)
29
)
30
 
31
; Call sh64_save_cfg_address for SID.
32
(define-pmacro (save-cfg-address address)
33
  (c-call "sh64_save_cfg_address" address)
34
)
35
 
36
; For making profiling calls and dynamic configuration.
37
(define-pmacro (cg-profile caller callee)
38
  (c-call "cg_profile" caller callee)
39
)
40
(define-pmacro (cg-profile-delay caller callee delay)
41
  (c-call "cg_profile" caller callee delay)
42
)
43
(define-pmacro (notify-ret pr)
44
  (c-call VOID "notify_ret" pr)
45
)
46
; For dynamic configuration only.
47
(define-pmacro (cg-profile-jump caller callee)
48
  (c-call "cg_profile_jump" caller callee)
49
)

powered by: WebSVN 2.1.0

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