source: branches/reconfiguration/softs/drivers/simhelper.c @ 1063

Last change on this file since 1063 was 850, checked in by cfuguet, 10 years ago

reconf: introducing a softs directory in the reconfiguration branch

  • This softs directory contains a minimalistic (giet-like) library of drivers and some utility functions.
  • Introducing a simple unit test in the vci_cc_vcache_wrapper component to test the newly introduced watchdog timer mechanism. This unit test uses the minimalistic library.
File size: 401 bytes
Line 
1/**
2 * \file   simhelper.c
3 * \date   26 August, 2014
4 * \author Cesar Fuguet <cesar.fuguet-tortolero@lip6.fr>
5 *
6 * \brief  simhelper driver
7 */
8#include <simhelper.h>
9#include <io.h>
10#include <hard_config.h>
11
12#define SIMHREG(x) (SEG_SIM_BASE + ((x)<<3))
13
14void simh_stop_simulation()
15{
16    iowrite32(SIMHREG(SIMH_EXCEPTION), 0);
17}
18
19/*
20 * vim: tabstop=4 : softtabstop=4 : shiftwidth=4 : expandtab
21 */
Note: See TracBrowser for help on using the repository browser.