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

Subversion Repositories scarts

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 jlechner
/* SHmedia opcode support.  -*- C -*-
2
   Copyright (C) 2000, 2001, 2005 Red Hat, Inc.
3
   This file is part of CGEN.  */
4
 
5
/* This file is an addendum to sh-media.cpu.  Heavy use of C code isn't
6
   appropriate in .cpu files, so it resides here.  This especially applies
7
   to assembly/disassembly where parsing/printing can be quite involved.
8
   Such things aren't really part of the specification of the cpu, per se,
9
   so .cpu files provide the general framework and .opc files handle the
10
   nitty-gritty details as necessary.
11
 
12
   Each section is delimited with start and end markers.
13
 
14
   -opc.h additions use: "-- opc.h"
15
   -opc.c additions use: "-- opc.c"
16
   -asm.c additions use: "-- asm.c"
17
   -dis.c additions use: "-- dis.c"
18
   -ibd.h additions use: "-- ibd.h"  */
19
 
20
/* -- opc.h */
21
 
22
/* Allows reason codes to be output when assembler errors occur.  */
23
#define CGEN_VERBOSE_ASSEMBLER_ERRORS
24
 
25
/* Override disassembly hashing - there are variable bits in the top
26
   byte of these instructions.  */
27
#define CGEN_DIS_HASH_SIZE 8
28
#define CGEN_DIS_HASH(buf,value) (((* (unsigned char*) (buf)) >> 6) % CGEN_DIS_HASH_SIZE)
29
 
30
/* -- asm.c */
31
 
32
static const char *
33
parse_fsd (CGEN_CPU_DESC cd,
34
           const char ** strp,
35
           int opindex,
36
           long * valuep)
37
{
38
  abort ();
39
}
40
 
41
/* -- dis.c */
42
 
43
static void
44
print_likely (CGEN_CPU_DESC cd,
45
              void * dis_info,
46
              long value,
47
              unsigned int attrs,
48
              bfd_vma pc,
49
              int length)
50
{
51
  disassemble_info *info = (disassemble_info *) dis_info;
52
 
53
  (*info->fprintf_func) (info->stream, (value) ? "/l" : "/u");
54
}
55
 
56
/* -- */

powered by: WebSVN 2.1.0

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