error.isa (4276:f0030662ee2a) error.isa (4704:09303c75d67a)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 The Hewlett-Packard Development Company
4// All rights reserved.
5//
6// Redistribution and use of this software in source and binary forms,
7// with or without modification, are permitted provided that the
8// following conditions are met:

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

59//
60// "Format" which really indicates an internal error. This is a more
61// significant problem for x86 than for other ISAs because of it's complex
62// ExtMachInst type.
63//
64
65def template ErrorDecode {{
66 {
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 The Hewlett-Packard Development Company
4// All rights reserved.
5//
6// Redistribution and use of this software in source and binary forms,
7// with or without modification, are permitted provided that the
8// following conditions are met:

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

59//
60// "Format" which really indicates an internal error. This is a more
61// significant problem for x86 than for other ISAs because of it's complex
62// ExtMachInst type.
63//
64
65def template ErrorDecode {{
66 {
67 panic("X86 decoder internal error: '%%s' %%s",
67 panic("X86 decoder internal error: '%s' %s",
68 %(message)s, machInst);
69 }
70}};
71
72def format M5InternalError(error_message) {{
73 iop = InstObjParams(name, 'M5InternalError')
74 iop.message = error_message
75 decode_block = ErrorDecode.subst(iop)
76}};
77
68 %(message)s, machInst);
69 }
70}};
71
72def format M5InternalError(error_message) {{
73 iop = InstObjParams(name, 'M5InternalError')
74 iop.message = error_message
75 decode_block = ErrorDecode.subst(iop)
76}};
77