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 |
33const char * 34PAL::name(int index) 35{ 36 static const char *strings[PAL::NumCodes] = { |
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 }; |
299 |
300 if (index > NumCodes || index < 0) 301 return 0; 302 303 return strings[index]; 304} |