QEMU-Nyx-fork/nyx/helpers.h
Sergej Schumilo 8a88edc2a1 auto-apply clang-format
- including vl.c & kvm-all.c
2022-10-16 23:51:13 +02:00

24 lines
686 B
C

#pragma once
uint64_t get_rip(CPUState *cpu);
typedef struct nyx_coverage_bitmap_copy_s {
void *coverage_bitmap;
void *ijon_bitmap_buffer;
} nyx_coverage_bitmap_copy_t;
void nyx_abort(char *msg);
bool is_called_in_fuzzing_mode(const char *hypercall);
nyx_coverage_bitmap_copy_t *new_coverage_bitmaps(void);
void coverage_bitmap_reset(void);
void coverage_bitmap_copy_to_buffer(nyx_coverage_bitmap_copy_t *buffer);
void coverage_bitmap_copy_from_buffer(nyx_coverage_bitmap_copy_t *buffer);
int get_capstone_mode(int word_width_in_bits);
bool apply_capabilities(CPUState *cpu);
bool folder_exits(const char *path);
bool file_exits(const char *path);