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 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);
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
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
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}