8 #include "absl/types/span.h"
9 #include "sw/device/lib/base/mock_abs_mmio.h"
11 #include "sw/device/silicon_creator/lib/bootstrap_fuzzer_util.h"
12 #include "sw/device/silicon_creator/rom/bootstrap.h"
14 #include "gpio_regs.h"
16 #include "otp_ctrl_regs.h"
28 AbstractBootstrapMockGroup::ConfigureMocks();
30 ON_CALL(otp_, read32(OTP_CTRL_PARAM_OWNER_SW_CFG_ROM_BOOTSTRAP_DIS_OFFSET))
37 ::testing::Return(stream_.ParseIntOr<uint32_t>(
"strapping", 0)));
41 ::rom_test::NiceMockAbsMmio mmio_;
45 extern "C" int LLVMFuzzerTestOneInput(
const uint8_t *data,
size_t size) {
48 constexpr
bool kVerbose =
false;
49 StreamParser stream(absl::MakeConstSpan(data, size), kVerbose);
50 RomMockGroup mock_group(std::move(stream), kVerbose);
51 mock_group.ConfigureMocks();