root / target-cris / op_mem.c @ caa88be0
History | View | Annotate | Download (1.6 kB)
1 | 81fdc5f8 | ths | /*
|
---|---|---|---|
2 | 81fdc5f8 | ths | * CRIS memory access (load and store) micro operations.
|
3 | 81fdc5f8 | ths | *
|
4 | 81fdc5f8 | ths | * Copyright (c) 2007 Edgar E. Iglesias, Axis Communications AB.
|
5 | 81fdc5f8 | ths | *
|
6 | 81fdc5f8 | ths | * This library is free software; you can redistribute it and/or
|
7 | 81fdc5f8 | ths | * modify it under the terms of the GNU Lesser General Public
|
8 | 81fdc5f8 | ths | * License as published by the Free Software Foundation; either
|
9 | 81fdc5f8 | ths | * version 2 of the License, or (at your option) any later version.
|
10 | 81fdc5f8 | ths | *
|
11 | 81fdc5f8 | ths | * This library is distributed in the hope that it will be useful,
|
12 | 81fdc5f8 | ths | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 | 81fdc5f8 | ths | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14 | 81fdc5f8 | ths | * Lesser General Public License for more details.
|
15 | 81fdc5f8 | ths | *
|
16 | 81fdc5f8 | ths | * You should have received a copy of the GNU Lesser General Public
|
17 | 81fdc5f8 | ths | * License along with this library; if not, write to the Free Software
|
18 | 81fdc5f8 | ths | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19 | 81fdc5f8 | ths | */
|
20 | 81fdc5f8 | ths | |
21 | 81fdc5f8 | ths | void glue(op_ldb_T0_T0, MEMSUFFIX) (void) { |
22 | 81fdc5f8 | ths | T0 = glue(ldsb, MEMSUFFIX) (T0); |
23 | 81fdc5f8 | ths | RETURN(); |
24 | 81fdc5f8 | ths | } |
25 | 81fdc5f8 | ths | |
26 | 81fdc5f8 | ths | void glue(op_ldub_T0_T0, MEMSUFFIX) (void) { |
27 | 81fdc5f8 | ths | T0 = glue(ldub, MEMSUFFIX) (T0); |
28 | 81fdc5f8 | ths | RETURN(); |
29 | 81fdc5f8 | ths | } |
30 | 81fdc5f8 | ths | |
31 | 81fdc5f8 | ths | void glue(op_stb_T0_T1, MEMSUFFIX) (void) { |
32 | 81fdc5f8 | ths | glue(stb, MEMSUFFIX) (T0, T1); |
33 | 81fdc5f8 | ths | RETURN(); |
34 | 81fdc5f8 | ths | } |
35 | 81fdc5f8 | ths | |
36 | 81fdc5f8 | ths | void glue(op_ldw_T0_T0, MEMSUFFIX) (void) { |
37 | 81fdc5f8 | ths | T0 = glue(ldsw, MEMSUFFIX) (T0); |
38 | 81fdc5f8 | ths | RETURN(); |
39 | 81fdc5f8 | ths | } |
40 | 81fdc5f8 | ths | |
41 | 81fdc5f8 | ths | void glue(op_lduw_T0_T0, MEMSUFFIX) (void) { |
42 | 81fdc5f8 | ths | T0 = glue(lduw, MEMSUFFIX) (T0); |
43 | 81fdc5f8 | ths | RETURN(); |
44 | 81fdc5f8 | ths | } |
45 | 81fdc5f8 | ths | |
46 | 81fdc5f8 | ths | void glue(op_stw_T0_T1, MEMSUFFIX) (void) { |
47 | 81fdc5f8 | ths | glue(stw, MEMSUFFIX) (T0, T1); |
48 | 81fdc5f8 | ths | RETURN(); |
49 | 81fdc5f8 | ths | } |
50 | 81fdc5f8 | ths | |
51 | 81fdc5f8 | ths | void glue(op_ldl_T0_T0, MEMSUFFIX) (void) { |
52 | 81fdc5f8 | ths | T0 = glue(ldl, MEMSUFFIX) (T0); |
53 | 81fdc5f8 | ths | RETURN(); |
54 | 81fdc5f8 | ths | } |
55 | 81fdc5f8 | ths | |
56 | 81fdc5f8 | ths | void glue(op_stl_T0_T1, MEMSUFFIX) (void) { |
57 | 81fdc5f8 | ths | glue(stl, MEMSUFFIX) (T0, T1); |
58 | 81fdc5f8 | ths | RETURN(); |
59 | 81fdc5f8 | ths | } |