mem.isa (6207:c47f3e877a57) mem.isa (6739:48d10ba361c9)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 MIPS Technologies, Inc.
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

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

614
615 (header_output, decoder_output, decode_block, exec_output) = \
616 LoadStoreBase(name, Name, ea_code, memacc_code, mem_flags, inst_flags,
617 exec_template_base = 'Store')
618}};
619
620def format Prefetch(ea_code = {{ EA = Rs + disp; }},
621 mem_flags = [], pf_flags = [], inst_flags = []) {{
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 MIPS Technologies, Inc.
4// All rights reserved.
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met: redistributions of source code must retain the above copyright

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

614
615 (header_output, decoder_output, decode_block, exec_output) = \
616 LoadStoreBase(name, Name, ea_code, memacc_code, mem_flags, inst_flags,
617 exec_template_base = 'Store')
618}};
619
620def format Prefetch(ea_code = {{ EA = Rs + disp; }},
621 mem_flags = [], pf_flags = [], inst_flags = []) {{
622 pf_mem_flags = mem_flags + pf_flags + ['NO_FAULT']
622 pf_mem_flags = mem_flags + pf_flags + ['PREFETCH']
623 pf_inst_flags = inst_flags + ['IsMemRef', 'IsLoad',
624 'IsDataPrefetch', 'MemReadOp']
625
626 (header_output, decoder_output, decode_block, exec_output) = \
627 LoadStoreBase(name, Name, ea_code,
628 'xc->prefetch(EA, memAccessFlags);',
629 pf_mem_flags, pf_inst_flags, exec_template_base = 'Misc')
630
631}};
632
633def format StoreCond(memacc_code, postacc_code,
634 ea_code = {{ EA = Rs + disp; }},
635 mem_flags = [], inst_flags = []) {{
636 (header_output, decoder_output, decode_block, exec_output) = \
637 LoadStoreBase(name, Name, ea_code, memacc_code, mem_flags, inst_flags,
638 postacc_code, exec_template_base = 'StoreCond')
639}};
623 pf_inst_flags = inst_flags + ['IsMemRef', 'IsLoad',
624 'IsDataPrefetch', 'MemReadOp']
625
626 (header_output, decoder_output, decode_block, exec_output) = \
627 LoadStoreBase(name, Name, ea_code,
628 'xc->prefetch(EA, memAccessFlags);',
629 pf_mem_flags, pf_inst_flags, exec_template_base = 'Misc')
630
631}};
632
633def format StoreCond(memacc_code, postacc_code,
634 ea_code = {{ EA = Rs + disp; }},
635 mem_flags = [], inst_flags = []) {{
636 (header_output, decoder_output, decode_block, exec_output) = \
637 LoadStoreBase(name, Name, ea_code, memacc_code, mem_flags, inst_flags,
638 postacc_code, exec_template_base = 'StoreCond')
639}};