summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/118/virtual/1815078
blob: 0d6289556f1e6f9dcb7dac625e33f3950b57296d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
risc-v: 0.986
virtual: 0.959
register: 0.950
mistranslation: 0.920
files: 0.907
user-level: 0.906
semantic: 0.882
performance: 0.830
permissions: 0.810
arm: 0.801
graphic: 0.792
PID: 0.777
architecture: 0.768
device: 0.766
hypervisor: 0.750
network: 0.736
vnc: 0.732
ppc: 0.724
debug: 0.723
socket: 0.713
peripherals: 0.711
kernel: 0.697
boot: 0.647
VMM: 0.640
KVM: 0.616
i386: 0.613
TCG: 0.605
assembly: 0.555
x86: 0.535

Qemu 3.1.0 risc-v mie.MEIE

Hello all,

There is a bug in qemu for Risc-v, related to the mie register: when we try to set the MEIE bit (11) nothing is done, even when we are running at machine mode.

Li   a0 , 1 << 11
Csrs mie , a0

And when we read mie it is as though nothing was done.

Going through the qemu source code I was able to correct it: on file op_helper.c, line 94, the variable all_ints should be initialized with:

uint64_t all_ints = delegable_ints | MIP_MSIP | MIP_MTIP | MIP_MEIP;

That is, the MIP_MEIP was missing.

I've successfully triggered uart interrupts with this patch (virt machine).

All the best,
Pharos team

It looks like this is fixed as of c7b951718815 ("RISC-V: Implement modular CSR helper interface"), which was merged on January 14th.

Good news,

Thanks

LMK if that patch doesn't fix your issue.  QEMU master is pretty stable for RISC-V right now and since there's a handful of intertwined patches the best bet is probably just to use the commit hash above.

This should be fixed in the 4.0 release, which is targeted for the middle of April.

OK, I'll give it a try and give you some feedback.

Thanks

So I tried it but got the error:

ERROR: missing file ../qemu-3.1.0/ui/keycodemapdb/README

This is not a GIT checkout but module content appears to
be missing. Do not use 'git archive' or GitHub download links
to acquire QEMU source archives. Non-GIT builds are only
supported with source archives linked from:

  https://www.qemu.org/download/

Developers working with GIT can use scripts/archive-source.sh
if they need to create valid source archives.

Makefile.cross-compiler:259: recipe for target 'qemu-3.1' failed
make: *** [qemu-3.1] Error 1



Get this is standard error, but I don't have time now to see how to work around it. Maybe later I can