macromem.isa (7134:60fe8a00b36e) macromem.isa (7135:16f3c26a2923)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2010 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

--- 29 unchanged lines hidden (view full) ---

38// Authors: Gabe Black
39
40def format ArmMacroMem() {{
41 decode_block = '''
42 return new LdmStm(machInst, (IntRegIndex)(uint32_t)RN, !PREPOST, UP,
43 PSRUSER, WRITEBACK, LOADOP, machInst.regList);
44 '''
45}};
1// -*- mode:c++ -*-
2
3// Copyright (c) 2010 ARM Limited
4// All rights reserved
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

--- 29 unchanged lines hidden (view full) ---

38// Authors: Gabe Black
39
40def format ArmMacroMem() {{
41 decode_block = '''
42 return new LdmStm(machInst, (IntRegIndex)(uint32_t)RN, !PREPOST, UP,
43 PSRUSER, WRITEBACK, LOADOP, machInst.regList);
44 '''
45}};
46
47def format Thumb16MacroMem() {{
48 decode_block = '''
49 {
50 const IntRegIndex rn = (IntRegIndex)(uint32_t)bits(machInst, 10, 8);
51 const bool load = (bits(machInst, 11) == 1);
52 const uint32_t regList = bits(machInst, 7, 0);
53 const bool writeback = (!load || bits(regList, rn) == 0);
54 return new LdmStm(machInst, rn, true, true, false,
55 writeback, load, regList);
56 }
57 '''
58}};