util.isa (6691:cd68b6ecd68d) | util.isa (7045:e21fe6a62b1c) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2003-2005 The Regents of The University of Michigan 4// Copyright (c) 2009 The University of Edinburgh 5// All rights reserved. 6// 7// Redistribution and use in source and binary forms, with or without 8// modification, are permitted provided that the following conditions are --- 83 unchanged lines hidden (view full) --- 92 93def LoadStoreBase(name, Name, ea_code, memacc_code, mem_flags, inst_flags, 94 base_class = 'MemOp', 95 decode_template = BasicDecode, exec_template_base = ''): 96 # Make sure flags are in lists (convert to lists if not). 97 mem_flags = makeList(mem_flags) 98 inst_flags = makeList(inst_flags) 99 | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2003-2005 The Regents of The University of Michigan 4// Copyright (c) 2009 The University of Edinburgh 5// All rights reserved. 6// 7// Redistribution and use in source and binary forms, with or without 8// modification, are permitted provided that the following conditions are --- 83 unchanged lines hidden (view full) --- 92 93def LoadStoreBase(name, Name, ea_code, memacc_code, mem_flags, inst_flags, 94 base_class = 'MemOp', 95 decode_template = BasicDecode, exec_template_base = ''): 96 # Make sure flags are in lists (convert to lists if not). 97 mem_flags = makeList(mem_flags) 98 inst_flags = makeList(inst_flags) 99 |
100 # add hook to get effective addresses into execution trace output. 101 ea_code += '\nif (traceData) { traceData->setAddr(EA); }\n' 102 | |
103 # Generate InstObjParams for the memory access. 104 iop = InstObjParams(name, Name, base_class, 105 {'ea_code': ea_code, 106 'memacc_code': memacc_code}, 107 inst_flags) 108 109 if mem_flags: 110 s = '\n\tmemAccessFlags = ' + string.join(mem_flags, '|') + ';' --- 64 unchanged lines hidden --- | 100 # Generate InstObjParams for the memory access. 101 iop = InstObjParams(name, Name, base_class, 102 {'ea_code': ea_code, 103 'memacc_code': memacc_code}, 104 inst_flags) 105 106 if mem_flags: 107 s = '\n\tmemAccessFlags = ' + string.join(mem_flags, '|') + ';' --- 64 unchanged lines hidden --- |