commit | b322151871d08556c45746481b8a9d33c2a67642 | [log] [tgz] |
---|---|---|
author | Sam Elliott <selliott@lowrisc.org> | Fri Jul 03 16:17:08 2020 +0100 |
committer | Sam Elliott <sam@lenary.co.uk> | Thu Jul 09 00:48:40 2020 +0100 |
tree | 40d109896250afcf2b463baef921071e5fcbc799 | |
parent | bda1d16b1044fa5ca5c26b4e99b9badf35f2e3fb [diff] |
[sw] Use Verilator Stop Address When run under Verilator, the core has an address to write to which can stop execution. This has not been used by software until now, for no good reason. This commit adds a device-specific definition for this address, and instantiates it with the correct address on verilator. We use the value of zero to denote that this address doesn't exist on other device configurations. The core may write one of the following values: - `0xFFFFFFFE`, if we reach the end of the Boot ROM (i.e. if the flash entry function ever returns, which it shouldn't). - `0xFFFFFFFF`, if `abort` is called. - The return value of `main` in the Flash Image. This is likely to be either `0x0` (for success), or `0x1` (for failure) to match Unix exit codes. The simulator does not care which value is written, just that a write hits a specific address. Closes #501. Signed-off-by: Sam Elliott <selliott@lowrisc.org>
OpenTitan is an open source silicon Root of Trust (RoT) project. OpenTitan will make the silicon RoT design and implementation more transparent, trustworthy, and secure for enterprises, platform providers, and chip manufacturers. OpenTitan is administered by lowRISC CIC as a collaborative project to produce high quality, open IP for instantiation as a full-featured product. See the OpenTitan site and OpenTitan docs for more information about the project.
This repository contains hardware, software and utilities written as part of the OpenTitan project. It is structured as monolithic repository, or “monorepo”, where all components live in one repository. It exists to enable collaboration across partners participating in the OpenTitan project.
The project contains comprehensive documentation of all IPs and tools. You can access it online at docs.opentitan.org.
Have a look at CONTRIBUTING for guidelines on how to contribute code to this repository.
Unless otherwise noted, everything in this repository is covered by the Apache License, Version 2.0 (see LICENSE for full text).