compressed.isa (12120:133620bfc43b) | compressed.isa (12320:d846aaaa33b1) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2015 RISC-V Foundation 4// Copyright (c) 2017 The University of Virginia 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 --- 53 unchanged lines hidden (view full) --- 62 header_output = BasicDeclare.subst(iop) 63 decoder_output = BasicConstructor.subst(iop) 64 decode_block = BasicDecode.subst(iop) 65 exec_output = BasicExecute.subst(iop) 66}}; 67 68def format CIOp(imm_code, code, *opt_flags) {{ 69 regs = ['_destRegIdx[0]','_srcRegIdx[0]'] | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2015 RISC-V Foundation 4// Copyright (c) 2017 The University of Virginia 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 --- 53 unchanged lines hidden (view full) --- 62 header_output = BasicDeclare.subst(iop) 63 decoder_output = BasicConstructor.subst(iop) 64 decode_block = BasicDecode.subst(iop) 65 exec_output = BasicExecute.subst(iop) 66}}; 67 68def format CIOp(imm_code, code, *opt_flags) {{ 69 regs = ['_destRegIdx[0]','_srcRegIdx[0]'] |
70 iop = InstObjParams(name, Name, 'ImmOp', | 70 iop = InstObjParams(name, Name, 'ImmOp<int64_t>', |
71 {'code': code, 'imm_code': imm_code, 72 'regs': ','.join(regs)}, opt_flags) 73 header_output = ImmDeclare.subst(iop) 74 decoder_output = ImmConstructor.subst(iop) 75 decode_block = BasicDecode.subst(iop) 76 exec_output = ImmExecute.subst(iop) 77}}; 78 79def format CUIOp(imm_code, code, *opt_flags) {{ 80 regs = ['_destRegIdx[0]','_srcRegIdx[0]'] | 71 {'code': code, 'imm_code': imm_code, 72 'regs': ','.join(regs)}, opt_flags) 73 header_output = ImmDeclare.subst(iop) 74 decoder_output = ImmConstructor.subst(iop) 75 decode_block = BasicDecode.subst(iop) 76 exec_output = ImmExecute.subst(iop) 77}}; 78 79def format CUIOp(imm_code, code, *opt_flags) {{ 80 regs = ['_destRegIdx[0]','_srcRegIdx[0]'] |
81 iop = InstObjParams(name, Name, 'UImmOp', | 81 iop = InstObjParams(name, Name, 'ImmOp<uint64_t>', |
82 {'code': code, 'imm_code': imm_code, 83 'regs': ','.join(regs)}, opt_flags) 84 header_output = ImmDeclare.subst(iop) 85 decoder_output = ImmConstructor.subst(iop) 86 decode_block = BasicDecode.subst(iop) 87 exec_output = ImmExecute.subst(iop) 88}}; 89 --- 13 unchanged lines hidden --- | 82 {'code': code, 'imm_code': imm_code, 83 'regs': ','.join(regs)}, opt_flags) 84 header_output = ImmDeclare.subst(iop) 85 decoder_output = ImmConstructor.subst(iop) 86 decode_block = BasicDecode.subst(iop) 87 exec_output = ImmExecute.subst(iop) 88}}; 89 --- 13 unchanged lines hidden --- |