start running global constructors

This commit is contained in:
Jacob Lifshay 2026-04-01 21:28:11 -07:00
parent 9ed1b679c0
commit f64b5d7120
Signed by: programmerjake
SSH key fingerprint: SHA256:HnFTLGpSm4Q4Fj502oCFisjZSoakwEuTsJJMSke63RQ
5 changed files with 1096 additions and 196 deletions

1258
src/lib.rs

File diff suppressed because it is too large Load diff

View file

@ -1,10 +1,10 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
// See Notices.txt for copyright information
use compile_qemu_for_decoder::parse_qemu_ppc64_softmmu;
use compile_qemu_for_decoder::parse_qemu_system_ppc64;
use inkwell::targets::{InitializationConfig, Target};
fn main() -> eyre::Result<()> {
Target::initialize_power_pc(&InitializationConfig::default());
parse_qemu_ppc64_softmmu("libqemu-ppc64-softmmu.bc", 10, 10)
parse_qemu_system_ppc64("qemu-system-ppc64.bc", 10, 10)
}