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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-binutils/] [binutils-2.19.1/] [cgen/] [pgmr-tools.scm] - Blame information for rev 7

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

Line No. Rev Author Line
1 6 jlechner
; Programmer development tools.
2
; Copyright (C) 2000, 2009 Red Hat, Inc.
3
; This file is part of CGEN.
4
; See file COPYING.CGEN for details.
5
;
6
; This file contains a collection of programmer debugging tools.
7
; They're mainly intended for using cgen to debug other things,
8
; but any kind of debugging tool can go here.
9
; All routines require the application independent part of cgen to be loaded
10
; and the .cpu file to be loaded.  They do not require any particular
11
; application though (opcodes, simulator, etc.).  If they do, that's a bug.
12
; It may be that the appication has a generally useful routine that should
13
; live elsewhere, but that's it.
14
;
15
; These tools don't have to be particularily efficient (within reason).
16
; It's more important that they be simple and clear.
17
;
18
; Some tools require ifmt-compute! to be run.
19
; They will run it if necessary.
20
;
21
; Table of contents:
22
;
23
; pgmr-pretty-print-insn-format
24
;   cgen debugging tool, pretty prints the iformat of an <insn> object
25
;
26
; pgmr-pretty-print-insn-value
27
;   break out an instruction's value into its component fields
28
;
29
; pgmr-lookup-insn
30
;   given a random bit pattern for an instruction, lookup the insn and return
31
;   its <insn> object
32
 
33
; INSN is an <insn> object.
34
"0x"", "" "; Print VALUE with digits not in MASK printed as "X".
35
 
36
"\n"; Pretty print an instruction's value.
37
 
38
; VALUE is either a single number of size base-insn-bitsize,
39
; or a list of numbers for variable length ISAs.
40
; LENGTH is the total length of VALUE in bits.
41
; include aliases
42
 
43
; Return a boolean indicating if BASE matches the base part of <insn> INSN.
44
; return (value & mask) == ivalue
45
 

powered by: WebSVN 2.1.0

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