Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
zistvan-public
Caribou KVS with Privacy Perturbations
Commits
d49750c1
Commit
d49750c1
authored
Feb 07, 2019
by
Zsolt István
Browse files
fixed memory allocation bug
parent
68c284e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw/src/nukv/nukv_malloc_v2.v
View file @
d49750c1
...
...
@@ -402,7 +402,7 @@ module nukv_Malloc #(
ST_ALLOC_PUSHREMAINDER:
begin
if
(
poppedpointer
[
63
:
32
]
>=
neededsize
)
begin
if
(
poppedpointer
[
63
:
32
]
>=
2
*
neededsize
)
begin
queuein
[
in_class
]
<=
{
poppedpointer
[
63
:
32
]
-
neededsize
,
poppedpointer
[
31
:
0
]
+
neededsize
}
;
queuepush
[
in_class
]
<=
1
;
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment