Deleted Added
sdiff udiff text old ( 8766:b0773af78423 ) new ( 8784:05fb20d7064b )
full compact
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);
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
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
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}