osfpal.cc (5543:3af77710f397) | osfpal.cc (5569:baeee670d4ce) |
---|---|
1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 16 unchanged lines hidden (view full) --- 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Nathan Binkert 29 */ 30 31#include "arch/alpha/osfpal.hh" 32 | 1/* 2 * Copyright (c) 2003-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 16 unchanged lines hidden (view full) --- 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * Authors: Nathan Binkert 29 */ 30 31#include "arch/alpha/osfpal.hh" 32 |
33namespace { 34 const char *strings[PAL::NumCodes] = { | 33const char * 34PAL::name(int index) 35{ 36 static const char *strings[PAL::NumCodes] = { |
35 // Priviledged PAL instructions 36 "halt", // 0x00 37 "cflush", // 0x01 38 "draina", // 0x02 39 0, // 0x03 40 0, // 0x04 41 0, // 0x05 42 0, // 0x06 --- 246 unchanged lines hidden (view full) --- 289 0, // 0xfa 290 0, // 0xfb 291 0, // 0xfc 292 0, // 0xfd 293 0, // 0xfe 294 0 // 0xff 295#endif 296 }; | 37 // Priviledged PAL instructions 38 "halt", // 0x00 39 "cflush", // 0x01 40 "draina", // 0x02 41 0, // 0x03 42 0, // 0x04 43 0, // 0x05 44 0, // 0x06 --- 246 unchanged lines hidden (view full) --- 291 0, // 0xfa 292 0, // 0xfb 293 0, // 0xfc 294 0, // 0xfd 295 0, // 0xfe 296 0 // 0xff 297#endif 298 }; |
297} | |
298 | 299 |
299const char * 300PAL::name(int index) 301{ | |
302 if (index > NumCodes || index < 0) 303 return 0; 304 305 return strings[index]; 306} | 300 if (index > NumCodes || index < 0) 301 return 0; 302 303 return strings[index]; 304} |