Snitch Runtime
Loading...
Searching...
No Matches
sw
runtime
src
dump.h
1
// Copyright 2020 ETH Zurich and University of Bologna.
2
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3
// SPDX-License-Identifier: Apache-2.0
4
//
5
// Authors: Samuel Riedel, ETH Zurich <sriedel@iis.ee.ethz.ch>
6
// Viviane Potocnik, ETH Zurich <vivianep@iis.ee.ethz.ch>
7
// Luca Colagrande, ETH Zurich <colluca@iis.ee.ethz.ch>
8
9
// Dump a value via CSR
10
// !!! Careful: This is only supported in simulation and an experimental
11
// feature.
12
// This can be exploited to quickly print measurement values from all cores
13
// simultaneously without the hassle of printf.
14
15
#pragma once
16
17
#define DUMP(val) ({ asm volatile("csrw dump, %0" ::"rK"(val)); })
Generated by
1.12.0