decoder.isa (3825:9b5e6c4d3ecb) decoder.isa (3826:e35adf01a285)
1// Copyright (c) 2006 The Regents of The University of Michigan
2// All rights reserved.
3//
4// Redistribution and use in source and binary forms, with or without
5// modification, are permitted provided that the following conditions are
6// met: redistributions of source code must retain the above copyright
7// notice, this list of conditions and the following disclaimer;
8// redistributions in binary form must reproduce the above copyright

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

521 0x5: movrne({{Rd = (Rs1.sdw != 0) ? Rs2_or_imm10 : Rd;}});
522 0x6: movrg({{Rd = (Rs1.sdw > 0) ? Rs2_or_imm10 : Rd;}});
523 0x7: movrge({{Rd = (Rs1.sdw >= 0) ? Rs2_or_imm10 : Rd;}});
524 }
525 0x30: decode RD {
526 0x00: NoPriv::wry({{Y = Rs1 ^ Rs2_or_imm13;}});
527 //0x01 should cause an illegal instruction exception
528 0x02: NoPriv::wrccr({{Ccr = Rs1 ^ Rs2_or_imm13;}});
1// Copyright (c) 2006 The Regents of The University of Michigan
2// All rights reserved.
3//
4// Redistribution and use in source and binary forms, with or without
5// modification, are permitted provided that the following conditions are
6// met: redistributions of source code must retain the above copyright
7// notice, this list of conditions and the following disclaimer;
8// redistributions in binary form must reproduce the above copyright

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

521 0x5: movrne({{Rd = (Rs1.sdw != 0) ? Rs2_or_imm10 : Rd;}});
522 0x6: movrg({{Rd = (Rs1.sdw > 0) ? Rs2_or_imm10 : Rd;}});
523 0x7: movrge({{Rd = (Rs1.sdw >= 0) ? Rs2_or_imm10 : Rd;}});
524 }
525 0x30: decode RD {
526 0x00: NoPriv::wry({{Y = Rs1 ^ Rs2_or_imm13;}});
527 //0x01 should cause an illegal instruction exception
528 0x02: NoPriv::wrccr({{Ccr = Rs1 ^ Rs2_or_imm13;}});
529 0x03: NoPriv::wrasi({{Ccr = Rs1 ^ Rs2_or_imm13;}});
529 0x03: NoPriv::wrasi({{Asi = Rs1 ^ Rs2_or_imm13;}});
530 //0x04-0x05 should cause an illegal instruction exception
531 0x06: NoPriv::wrfprs({{Fprs = Rs1 ^ Rs2_or_imm13;}});
532 //0x07-0x0E should cause an illegal instruction exception
533 0x0F: Trap::softreset({{fault = new SoftwareInitiatedReset;}});
534 0x10: Priv::wrpcr({{Pcr = Rs1 ^ Rs2_or_imm13;}});
535 0x11: PrivCheck::wrpic({{Pic = Rs1 ^ Rs2_or_imm13;}}, {{Pcr<0:>}});
536 //0x12 should cause an illegal instruction exception
537 0x13: NoPriv::wrgsr({{

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

1012 0x1: Priv::retry({{
1013 if(Tl == 0)
1014 return new IllegalInstruction;
1015 Cwp = Tstate<4:0>;
1016 Pstate = Tstate<20:8>;
1017 Asi = Tstate<31:24>;
1018 Ccr = Tstate<39:32>;
1019 Gl = Tstate<42:40>;
530 //0x04-0x05 should cause an illegal instruction exception
531 0x06: NoPriv::wrfprs({{Fprs = Rs1 ^ Rs2_or_imm13;}});
532 //0x07-0x0E should cause an illegal instruction exception
533 0x0F: Trap::softreset({{fault = new SoftwareInitiatedReset;}});
534 0x10: Priv::wrpcr({{Pcr = Rs1 ^ Rs2_or_imm13;}});
535 0x11: PrivCheck::wrpic({{Pic = Rs1 ^ Rs2_or_imm13;}}, {{Pcr<0:>}});
536 //0x12 should cause an illegal instruction exception
537 0x13: NoPriv::wrgsr({{

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

1012 0x1: Priv::retry({{
1013 if(Tl == 0)
1014 return new IllegalInstruction;
1015 Cwp = Tstate<4:0>;
1016 Pstate = Tstate<20:8>;
1017 Asi = Tstate<31:24>;
1018 Ccr = Tstate<39:32>;
1019 Gl = Tstate<42:40>;
1020 Hpstate = Htstate;
1020 NPC = Tpc;
1021 NNPC = Tnpc;
1022 Tl = Tl - 1;
1023 }});
1024 }
1025 }
1026 }
1027 0x3: decode OP3 {

--- 260 unchanged lines hidden ---
1021 NPC = Tpc;
1022 NNPC = Tnpc;
1023 Tl = Tl - 1;
1024 }});
1025 }
1026 }
1027 }
1028 0x3: decode OP3 {

--- 260 unchanged lines hidden ---