"I am a person who works hard and plays hard."

Yuan Wei
Second Year Graduate Student Department of Computer Science
University of Virginia Charlottesville, VA 22903
Email: yw3f@cs.virginia.edu


Source Code Analysis

Main Page   Compound List   File List   Compound Members   File Members  

regs.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "host.h"
#include "misc.h"
#include "machine.h"
#include "loader.h"
#include "regs.h"

Include dependency graph for regs.c:

Include dependency graph

Go to the source code of this file.

Functions


Function Documentation

struct regs_t* regs_create void   
 

Definition at line 90 of file regs.c.

References fatal().

00091 {
00092   struct regs_t *regs;
00093 
00094   regs = calloc(1, sizeof(struct regs_t));
00095   if (!regs)
00096     fatal("out of virtual memory");
00097 
00098   return regs;
00099 }

void regs_init struct regs_t   regs
 

Definition at line 103 of file regs.c.

Referenced by sim_init().

00104 {
00105   /* FIXME: assuming all entries should be zero... */
00106   memset(regs, 0, sizeof(*regs));
00107 
00108   /* regs->regs_R[MD_SP_INDEX] and regs->regs_PC initialized by loader... */
00109 }



UVa CS Department of Computer Science
School of Engineering, University of Virginia
151 Engineer's Way, P.O. Box 400740
Charlottesville, Virginia 22904-4740

(434) 982-2200  Fax: (434) 982-2214