Computer Architecture

QEMU: Adding a System Call

<标题>Assignment 3 CMPT-300

<标题>QEMU: Adding a System Call

<标题>Disclaimer: This assignment is adapted from a project developed by Dr. Jason Nieh at

Columbia University.

Part A:

Setup Your Linux Kernel Building Environment and add dummy

syscall(25%):

The first step is to learn how to create a virtual machine using QEMU and install a

<标题>custom kernel.

Please follow this tutorial:

<标题>http://www.sfu.ca/~rws1/cmpt-300/assignments/a3-qemu-tut.pdf

<标题>All files can be downloaded from:

http://www.sfu.ca/~rws1/cmpt-300/assignments/cmpt300-a3.zip

Part B:

Adding an advanced system call(75%):

Write a new system call in Linux. The system call you write should take one argument

<标题>(pointer to a data structure) and return various information for the process identified by

<标题>the pid in the data structure. All return information will be put into the data structure. For

<标题>the following discussion all relative paths refer to the top of your kernel source

directory linux-2.6.26.5

<标题>The prototype for your system call will be:

<标题>int prinfo(struc

CSCE614 solution supersalar

CSCE614 Computer Architecture (Spring 2015)

Homework #4 (Pseudo-Associative Cache)

(Due: Beginning of class on 4/17/2015)

Objective

This project is to help you understand how pseudo-associative (column-associative) cache works. You

<标题>will initially analyze the sensitivity of L1 caches to changes in parameters. Then you are to implement L1

data cache as pseudo-associative in SimpleScalar and compare its performance to the normal direct-
mapped L1 data cache.

System Requirement

<标题>Linux operating system is needed in order to use the pre-compiled little-endian Alpha ISA SPEC2000

<标题>binaries. Do not use Cygwin. If you don’t have any linux machine, please use linux.cs.tamu.edu with your

CS account. If you don’t have CS account, contact HelpDesk located in the first floor.

<标题>Setting up the environment and installing SimpleScalar

<标题>1. Download and Install SimpleScalar 3.0.

<标题>(1) Download simplesim-3v0e.tgz from http://www.simplescalar.com/.

(2) Untar the downloaded file.

$ tar xzvf simplesim-3v0e.tgz

(3) Read the

COMP 2691: Assignment #4 solution

<标题>計算機體系架構作業代做

COMP 2691: Assignment #4

!!! Note About Code !!!

<标题>Points will be deducted for any line of assembly code that does not have an explanatory comment at the end of it.

Please create a single PDF document containing the answers for the following questions. This file should be called hw04.pdf.

Question 1

Question 1.1: For (a) and (b) above, what is the clock cycle time in a pipelined and non-pipelined processor? [5 points each]

Question 1.2: For (a) and (b) above, what is the total latency of a lw i