process.cc (8766:b0773af78423) | process.cc (8784:05fb20d7064b) |
---|---|
1/* 2 * Copyright (c) 2001-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; --- 556 unchanged lines hidden (view full) --- 565 debugSymbolTable = NULL; 566 } 567 } 568} 569 570void 571LiveProcess::syscall(int64_t callnum, ThreadContext *tc) 572{ | 1/* 2 * Copyright (c) 2001-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; --- 556 unchanged lines hidden (view full) --- 565 debugSymbolTable = NULL; 566 } 567 } 568} 569 570void 571LiveProcess::syscall(int64_t callnum, ThreadContext *tc) 572{ |
573#if !FULL_SYSTEM | |
574 num_syscalls++; 575 576 SyscallDesc *desc = getDesc(callnum); 577 if (desc == NULL) 578 fatal("Syscall %d out of range", callnum); 579 580 desc->doSyscall(callnum, this, tc); | 573 num_syscalls++; 574 575 SyscallDesc *desc = getDesc(callnum); 576 if (desc == NULL) 577 fatal("Syscall %d out of range", callnum); 578 579 desc->doSyscall(callnum, this, tc); |
581#endif | |
582} 583 584IntReg 585LiveProcess::getSyscallArg(ThreadContext *tc, int &i, int width) 586{ 587 return getSyscallArg(tc, i); 588} 589 --- 9 unchanged lines hidden (view full) --- 599 fatal("Can't load object file %s", executable); 600 } 601 602 if (objFile->isDynamic()) 603 fatal("Object file is a dynamic executable however only static " 604 "executables are supported!\n Please recompile your " 605 "executable as a static binary and try again.\n"); 606 | 580} 581 582IntReg 583LiveProcess::getSyscallArg(ThreadContext *tc, int &i, int width) 584{ 585 return getSyscallArg(tc, i); 586} 587 --- 9 unchanged lines hidden (view full) --- 597 fatal("Can't load object file %s", executable); 598 } 599 600 if (objFile->isDynamic()) 601 fatal("Object file is a dynamic executable however only static " 602 "executables are supported!\n Please recompile your " 603 "executable as a static binary and try again.\n"); 604 |
607#if !FULL_SYSTEM | |
608#if THE_ISA == ALPHA_ISA 609 if (objFile->getArch() != ObjectFile::Alpha) 610 fatal("Object file architecture does not match compiled ISA (Alpha)."); 611 612 switch (objFile->getOpSys()) { 613 case ObjectFile::Tru64: 614 process = new AlphaTru64Process(params, objFile); 615 break; --- 94 unchanged lines hidden (view full) --- 710 break; 711 712 default: 713 fatal("Unknown/unsupported operating system."); 714 } 715#else 716#error "THE_ISA not set" 717#endif | 605#if THE_ISA == ALPHA_ISA 606 if (objFile->getArch() != ObjectFile::Alpha) 607 fatal("Object file architecture does not match compiled ISA (Alpha)."); 608 609 switch (objFile->getOpSys()) { 610 case ObjectFile::Tru64: 611 process = new AlphaTru64Process(params, objFile); 612 break; --- 94 unchanged lines hidden (view full) --- 707 break; 708 709 default: 710 fatal("Unknown/unsupported operating system."); 711 } 712#else 713#error "THE_ISA not set" 714#endif |
718#endif | |
719 720 if (process == NULL) 721 fatal("Unknown error creating process object."); 722 return process; 723} 724 725LiveProcess * 726LiveProcessParams::create() 727{ 728 return LiveProcess::create(this); 729} | 715 716 if (process == NULL) 717 fatal("Unknown error creating process object."); 718 return process; 719} 720 721LiveProcess * 722LiveProcessParams::create() 723{ 724 return LiveProcess::create(this); 725} |