forked from xcore/tool_axe
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathExceptions.cpp
More file actions
23 lines (21 loc) · 813 Bytes
/
Exceptions.cpp
File metadata and controls
23 lines (21 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) 2011, Richard Osborne, All rights reserved
// This software is freely distributable under a derivative of the
// University of Illinois/NCSA Open Source License posted in
// LICENSE.txt and at <http://github.xcore.com/>
#include "Exceptions.h"
const char *Exceptions::getExceptionName(int type)
{
switch (type) {
case ET_LINK_ERROR: return "LINK_ERROR";
case ET_ILLEGAL_PC: return "ILLEGAL_PC";
case ET_ILLEGAL_INSTRUCTION: return "ILLEGAL_INSTRUCTION";
case ET_ILLEGAL_RESOURCE: return "ILLEGAL_RESOURCE";
case ET_LOAD_STORE: return "LOAD_STORE";
case ET_ILLEGAL_PS: return "ILLEGAL_PS";
case ET_ARITHMETIC: return "ARITHMETIC";
case ET_ECALL: return "ECALL";
case ET_RESOURCE_DEP: return "RESOURCE_DEP";
case ET_KCALL: return "KCALL";
default: return "Unknown";
}
}