faults.cc (11723:0596db108c53) faults.cc (11725:eb58f1bbeac8)
1/*
2 * Copyright (c) 2016 RISC-V Foundation
3 * Copyright (c) 2016 The University of Virginia
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

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

67UnimplementedFault::invoke_se(ThreadContext *tc,
68 const StaticInstPtr &inst)
69{
70 panic("Unimplemented instruction %s at pc 0x%016llx", instName,
71 tc->pcState().pc());
72}
73
74void
1/*
2 * Copyright (c) 2016 RISC-V Foundation
3 * Copyright (c) 2016 The University of Virginia
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

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

67UnimplementedFault::invoke_se(ThreadContext *tc,
68 const StaticInstPtr &inst)
69{
70 panic("Unimplemented instruction %s at pc 0x%016llx", instName,
71 tc->pcState().pc());
72}
73
74void
75IllegalFrmFault::invoke_se(ThreadContext *tc, const StaticInstPtr &inst)
76{
77 panic("Illegal floating-point rounding mode 0x%x at pc 0x%016llx.",
78 frm, tc->pcState().pc());
79}
80
81void
75BreakpointFault::invoke_se(ThreadContext *tc, const StaticInstPtr &inst)
76{
77 schedRelBreak(0);
78}
79
80void
81SyscallFault::invoke_se(ThreadContext *tc, const StaticInstPtr &inst)
82{
83 tc->syscall(tc->readIntReg(SyscallNumReg));
84}
82BreakpointFault::invoke_se(ThreadContext *tc, const StaticInstPtr &inst)
83{
84 schedRelBreak(0);
85}
86
87void
88SyscallFault::invoke_se(ThreadContext *tc, const StaticInstPtr &inst)
89{
90 tc->syscall(tc->readIntReg(SyscallNumReg));
91}