blob: 0c491f2b563166bad424eec0e62d0f695dbadd96 [file] [log] [blame]
/*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: Copyright TF-RMM Contributors.
*/
#ifndef TB_H__
#define TB_H__
#include "smc-rmi.h"
#include "tb_common.h"
#include "tb_granules.h"
/* Initialize the global state based on the commands */
void __init_global_state(unsigned long cmd);
/* Sanity check on the implementation of CBMC */
void global_sanity_check(void);
/* Call the function based on the X0 value in `config` */
void tb_handle_smc(struct tb_regs *config);
/* Assertion used to check consistency of the testbench */
void __tb_expect_fail(void);
#endif /* !TB_H */