id = 1449 title = "RISCV: wrong check for vector extension ELEN value." state = "closed" created_at = "2023-01-18T15:45:22.681Z" closed_at = "2023-01-23T02:19:24.925Z" labels = ["target: riscv"] url = "https://gitlab.com/qemu-project/qemu/-/issues/1449" host-os = "n/a" host-arch = "n/a" qemu-version = "n/a" guest-os = "n/a" guest-arch = "n/a" description = """When checking if the vector extension ELEN value is in the range [8, 64], the lower bound check uses the `vlen` field instead of the `elen` one: https://gitlab.com/qemu-project/qemu/-/blob/master/target/riscv/cpu.c#L885.""" reproduce = "n/a" additional = """This is basically just a typo I found while reading the code, I do not have a real case scenario which resulted in this check to fail."""