commit | bb1605491e077b7769c7820204205506425a9979 | [log] [tgz] |
---|---|---|
author | Philipp Wagner <phw@lowrisc.org> | Mon May 17 20:38:04 2021 +0100 |
committer | Philipp Wagner <mail@philipp-wagner.com> | Wed May 19 12:30:01 2021 +0100 |
tree | b40a03d4385295f9c3bc8d2b3e024458dfa772d5 | |
parent | bdcd52343c6c313cb42793fde5aa3061b59e5bcf [diff] |
[otbnsim] Make OTBNState.pc_next always available pc_next was giving the next program counter if it wasn't just pc + 4, i.e. pc_next was only set if a jump or branch forced it to be non-linear. This setup required logic using pc_next to deal with that and fill in "pc + 4" if pc_next was None. This commit switches things around so that the next program counter is always available by calling get_next_pc(). We still keep track of program counters that are explicitly set to omit the next program counter information if it wasn't explicitly set. Signed-off-by: Philipp Wagner <phw@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 and our documentation on project organization and processes 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).