1
0
Fork 0
qemu/roms/skiboot/coverity-model.c
Daniel Baumann ea34ddeea6
Adding upstream version 1:10.0.2+ds.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 14:27:05 +02:00

24 lines
515 B
C

void __attribute__((noreturn)) _abort(void) {
__coverity_panic__();
}
void *__memalign(size_t blocksize, size_t bytes, const char *location) {
__coverity_alloc__(bytes);
}
void mem_free(struct mem_region *region, void *mem, const char *location) {
__coverity_free__(mem);
}
void lock_caller(struct lock *l, const char *caller)
{
__coverity_exclusive_lock_acquire__(l);
}
void unlock(struct lock *l) {
__coverity_exclusive_lock_release__(l);
}
static inline void cpu_relax(void) {
__coverity_sleep__();
}